将用户表变成系统表
exec sp_configure 'allow updates',1 reconfigure with override
UPDATE sysobjects SET status = status | 0x80000000 WHERE [NAME] = '表名称'
exec sp_configure 'allow updates',0 reconfigure with override
还原
exec sp_configure 'allow updates',1 reconfigure with override
UPDATE sysobjects SET status = status & 0x7FFFFFFF WHERE [NAME] = '表名称'
exec sp_configure 'allow updates',0 reconfigure with override
本文介绍如何通过SQL Server的sp_configure存储过程和UPDATE语句将用户自定义的表转换为系统表,并提供了详细的步骤及示例代码。
1148

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



