修改存储过程等的创建时间

如果要修改已经创建的存储过程、表、视图等的创建时间,可以试用以下代码:

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。呵呵!!!

原文地址:https://www.cnblogs.com/jerrychenfly/p/1860424.html