看看这个有用没:
select c.name,a.name ,b.name ,a.length, a.isnullable from syscolumns a, systypes b,sysobjects c where a.xusertype=b.xusertype and a.id = c.id and c.type='U'
select c.name,a.name ,b.name ,a.length, a.isnullable from syscolumns a, systypes b,sysobjects c where a.xusertype=b.xusertype and a.id = c.id and c.type='U'
mail:[email protected]
sky_blue(老衲) :不行啊,扩展属性是在syspropties表中在线等待
exec sp_addextendedproperty N'MS_Description', N'hello1',...
go
并且在用PD生成SQLSERVER2000脚本的时候,不能在脚本中生成注释comment,因此你的要求是不能直接实现的,可以变相处理:
1、用SQLSERVER2000生成脚本(选中包括扩展属性)
2、写程序读取N'MS_Description', N'hello1'就是关于表和列的描述,自己把这些读出的内容加到你的PD文档中就可以了。