sql server 2000系统表sysproperties在SQL 2008中无效的问题

sql server 2000系统表sysproperties在SQL 2008中无效的问题

 
今天无意中在网上发现Sqlserver有一个扩展属性系统表sysproperties,因为只接触过MSSQL2005及以后的版本,在生产库2008版本及联机文档上搜了下都找不到这个系统表,后来发现这个系统表在2005版本后就被另一个系统表sys.extended_properites所代替。 
  www.2cto.com  
查看表的扩展属性:
 
select object_id from sys.sysobjects where name = table_name;
select * from sys.extended_properites where major_id = object_id;
 
扩展属性中有一name值是MS_Description,这个值是查看备注信息的。
select * from sys.extended_properites where major_id = object_id and name = 'MS_Description';
 

posted on 2013-06-03 17:27  不悔的青春  阅读(922)  评论(2编辑  收藏  举报

导航