Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RE: Modified Stored Procedure

Status
Not open for further replies.

allyne

MIS
Joined
Feb 9, 2001
Messages
410
Location
US
Hi Everyone,

Is there a way in SQL2005 to find out everyone who has modified a stored procedure and when?

Thanks for your help!
 
USE AdventureWorks;
GO
SELECT name, create_date, modify_date
FROM sys.objects
WHERE type = 'P'
AND name = 'uspUpdateEmployeeHireInfo'
GO
 
Hi TysonLPrice,

Thanks for the quick response! This gives me the created date and last modified date I also need to know the history of who modifed the stored procedured so If three people modified it I need to know all three people and when each of them modified it. There's an old stored procedure that seems to have some problems and I'm trying to track down who I need to talk to. It went through many many changes and many people.

Thanks again for all your help!

 
I tried to post that it was missing the user right after my first post but IE froze up. I don't think that kind of history is kept. At my shop the DBAs will not roll out a change without an update to the modification log we maintain in comments.
 
Thats what I thought but was hoping I was missing something...

The comments are currently being maintained....it's now just trying to find out past modifications....

Thanks for all your help!
 
YOu should put any of your code in a source control program. We use visual source safe.
 
You're right....we are currently working on that. We're just not quite there yet....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top