Finding a creator of object

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shiju

    Finding a creator of object

    Hi all,

    whenever dbo is prifixed with the create script the owner becomes dbo.
    If the below script
    run by the sam the owner becomes dbo

    create proc dbo.test
    as
    print 'hello'

    Is there any place where SQL server keeps the record of creator?

  • Erland Sommarskog

    #2
    Re: Finding a creator of object

    shiju (shiju.samuel@g mail.com) writes:
    whenever dbo is prifixed with the create script the owner becomes dbo.
    If the below script
    run by the sam the owner becomes dbo
    >
    create proc dbo.test
    as
    print 'hello'
    >
    Is there any place where SQL server keeps the record of creator?
    No. You would have to have trace running that captutes the Object:Created
    event. In SQL 2005 you could also set up a DLL trigger.


    --
    Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

    Books Online for SQL Server 2005 at

    Books Online for SQL Server 2000 at

    Comment

    Working...