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';
 

相关文章:

  • 2021-10-04
  • 2022-12-23
  • 2021-07-31
  • 2021-06-12
  • 2022-12-23
  • 2022-02-03
  • 2021-10-20
  • 2021-11-14
猜你喜欢
  • 2021-06-06
  • 2021-08-20
  • 2021-04-20
  • 2021-04-09
  • 2021-10-23
  • 2021-12-01
相关资源
相似解决方案