Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the list of stored procedures created and / or modified on a particular date?

I want to find which stored procedure I've created and also I want to find which stored procedure I've modified in my SQL Server on a particular date like 27 september 2012 (27/09/2012).

Is there any query which will list these procedures that are created and also modified on this date?

like image 795
AB Vyas Avatar asked Sep 28 '12 11:09

AB Vyas


People also ask

How do I find stored procedure execution history in SQL Server?

Connect to your SQL Server instance when prompted. On the Trace Properties screen, click on the Events Selection tab and select the SP:Completed counter in the Stored Procedures grouping of counters. Click on the General Tab to save the results to a table or file.


1 Answers

You can try this query in any given SQL Server database:

SELECT      name,     create_date,     modify_date FROM sys.procedures WHERE create_date = '20120927'   

which lists out the name, the creation and the last modification date - unfortunately, it doesn't record who created and/or modified the stored procedure in question.

like image 54
marc_s Avatar answered Sep 19 '22 09:09

marc_s