修改存储过程等的创建时间
时间:2010-10-25 来源:刘备曹操
go
sp_configure 'allow updates',1
reconfigure with override
go
update sysobjects set crdate='2010-10-10' where name='CustOrderHist'
go
sp_configure 'allow updates',0
reconfigure with override
此处的name表示你要修改的存储过程、表、视图等。
注意:SQL SERVER 2005 和2008 不允许修改系统表。因此上段代码只适用于SQL SERVER 2000。呵呵!!!
相关阅读 更多 +