Re: Is there a way to determine who created a stored procedure?



Shawn Sesna (ShawnSesna@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
I'm using SQL Server 2005 and am wondering if there is a way to
determine who created a stored procedure? I've looked in sys.objects,
but all it gives me is the original create date and the last modified
date.

No, there is nothing out of the box. One could think that looking at the
owner would reveal the answer, but the owner is by default always the
owner of the schema.

You could create a DDL trigger that logs CREATE/ALTER PROCEDURE to a
log table to capture this information.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: vb codes migration
    ... .CommandType = CommandType.Text ... To call a stored procedure from SqlClient you should use ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.data.oledb)
  • Re: fmtonly problem (bug ??)
    ... not-so-short stored proc I would not want to run the full query just to ... a stored procedure could be written to generate different result sets ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: bcp utility
    ... ideal would be to loop through records in a stored procedure to create ... I know how to run it from the command prompt. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: fmtonly problem (bug ??)
    ... The stored procedure is simple enough but it uses that function to JOIN ... Using the schema, ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: How to FAST and EASY ENCRYPTION ALL Stored Procedure in my MS-SQL Database ?
    ... How to FAST and EASY ENCRYPTION ALL Stored Procedure in my MS-SQL ... compare merge/tool that permits you easily undo false positives. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)