Posted by Erland Sommarskog on 11/28/02 11:56
shiju (shiju.samuel@gmail.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@sommarskog.se
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
Navigation:
[Reply to this message]
|