获得Sql Server2000的字段注释

来源:互联网 发布:真空收纳袋 知乎 编辑:程序博客网 时间:2024/05/22 13:11

select so.name as table_name, sc.name as column_name, sc.xtype as data_type ,sp.value as remarks from sysobjects so left outer join syscolumns sc on so.id = sc.id left outer join sysproperties sp on sc.id = sp.id and sc.colid = sp.smallid where so.type = 'u' and so.name='T_CKey' order by so.id, sc.colorder

原创粉丝点击