select
i.name  as indes_name
, ob.name as table_name
, col.name as column_name
, ix.id
, ix.indid
, ix.keyno
from
sysindexkeys ix
, sysobjects ob
, syscolumns col
, sysindexes i
where
ix.id = ob.id
and ix.id = col.id
and ix.colid = col.colid
and i.id = ix.id
and i.indid = ix.indid
and ob.xtype in ('U','PK')
order by ob.name,ob.xtype,i.name,ix.id,ix.indid,ix.keyno

bcp database_name.dbo.table_name in filename.txt -Uuser -Ppass -Sserver -c

  1. SQL Server





トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS