Statistics

Total Posts: 34
This Year: 0
This Month: 0
This Week: 0
Comments: 174


RSS 2.0   SocialTwist Tell-a-Friend


Admin

Sign In

Navigation


Recent Posts


On this page....

Finding Stored Procedure Create and Modified Date in SQL Server

Archives

 Full Archives By Category
 2007 Calendar View
<March 2009>
SunMonTueWedThuFriSat
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

Categories

CDOSYS (1) Classic ASP (10) Command Line (2) Databases (16) Excel (1) HTML (1) IIS (10) Indexing Service (1) Internet Explorer (7) Media Streaming (1) MS.Net (2) SQA (7) SQL Server (16) Windows OS (2)

Blogroll - Fav Blogs


Acknowledgments

DasBlog Theme Design by: Tom Watts
E-mail: Send mail to the author(s)
Theme Image by: dreamLogic

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

Technology Blog

We all have created Stored Procedures in SQL Server. We keep doing regular updates on the applications using SQL Server database. The real problem comes when the application need to be made live and the database stored procedure is required to be synced with the live server. Unless there is no track of change monitored, it would be difficult while deploying the updates and upgrades in SQL SPs on to the live server. Now the question is more clear... Can I find the last modified date for a stored procedure in SQL Server?

Well, if you are using SQL Server 2000. You can get only the last modified date. The syntax for the same is

SELECT [Name], crDate
FROM sysobjects
WHERE [type] = 'p' and [Name] = '<Your_SP_Name>'

In case of SQL Server 2005, it is possible to find the last modified date for a stored procedure. The syntax for the same is

SELECT [Name], Create_Date, Modify_Date
FROM sys.objects
WHERE [type] = 'P' and [Name] = '<Your_SP_Name>'