第1个回答 2011-09-02
通过系统表去查:
select c.name as tablename,a.name,b.name,a.isnullable as datatype,d.keyno from syscolumns a
inner join systypes b on a.xtype=b.xtype
inner join sysobjects c on c.id=a.id
left join sysindexkeys d on d.id=c.id and d.colid=a.colid
where c.name='yourtablename'
需要更多的信息,可以自己研究这几个表的字段和内容