原来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
因此很多程序 能不出错吗?
微软公司在升级数据库版本的问题,怎么没有考虑到程序员?
微软删除一个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
本文介绍了从SQL Server 2000升级到2005及以上版本时,表sysproperties被extended_properties取代的情况,并提供了一段创建视图的代码以兼容旧版本的应用程序。

1466

被折叠的 条评论
为什么被折叠?



