SqlServer2005/2008下sysproperties无效的解决办法
生活随笔
收集整理的這篇文章主要介紹了
SqlServer2005/2008下sysproperties无效的解决办法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
SqlServer2005/2008下sysproperties無效的解決辦法
if exists (select 1 from sysobjects where name = 'sysproperties'and xtype = 'v')
begin? ? drop view sysproperties
end
? ? go
? ? create view sysproperties
? ? as
? ? select a.name as tablename,
? ? a.id as tableid,b.name as colname,b.colid as colid,
? ? b.xtype as coltype,c.name as propname,c.value as propvalue
? ? from sysobjects as a inner join syscolumns as b on a.id = b.id
? ? inner join sys.extended_properties as c on c.major_id = a.id?
? ? and ( minor_id = b.colid)
總結
以上是生活随笔為你收集整理的SqlServer2005/2008下sysproperties无效的解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 全国省市经纬度
- 下一篇: 再讨论下古老的include