August 9, 2010 at 6:00 am
Is there any possibility in identifying by which user and from which system a particular user table in a user database is created? in sys.tables i am able to see creation and modified date but how to identify the IP in which it is created
August 9, 2010 at 6:36 am
You can get that information by reading the Default Trace. Please refer this.
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
August 9, 2010 at 6:43 am
Adiga (8/9/2010)
You can get that information by reading the Default Trace. Please refer this.
This method is only useful if the table was created recently enough for the default trace to have been not yet overwritten. If you want a permanent record of who did what and where then one way is to use DDL triggers to log activity such as this to a separate database.
John
August 9, 2010 at 7:30 am
John Mitchell-245523 (8/9/2010)
If you want a permanent record of who did what and where then one way is to use DDL triggers to log activity such as this to a separate database.John
Do you have a link or code example, John?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 9, 2010 at 7:44 am
Jeff
Unfortunately I don't. One of my colleagues has written a sophisticated application for use in house. It collects data from servers about all sorts of stuff - file space, disk space, DDL changes, job failures and so on. It uses DDL triggers, DML triggers and Service Broker. As far as I know, he isn't planning on releasing it to market!
John
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply