原来SQL2000中的表sysproperties在SQL2005以上版本已经不存在了,被表extended_properties取代了。 
因此很多程序 能不出错吗?微软公司在升级数据库版本的问题,怎么没有考虑到程序员?微软删除一个sysproperties表,不知道多少个基于sysproperties的程序要出问题。 现提供一段代码,希望能帮助到一些朋友.
if exists (select 1 from sysobjects where name = 'sysproperties'and xtype = 'V')
begin
    DROP VIEW sysproperties
end
    GO
    CREATE VIEW sysproperties
AS
 SELECT class AS id,Minor_id AS sMallid,* from sys.extended_properties