August 27, 2010 at 9:12 am
Hello all,
Is there a way to obtain the name of the user that create a table? I know I can create a trigger or something like that to capture that kind of info, But I want to know if there is native way to do so...
August 27, 2010 at 9:45 am
You should be able to find that information in the default trace.
Check SQL Server 2005 Books Online for information on the default trace.
August 27, 2010 at 10:09 am
Another way? that db was moved from a now defunct server...
August 27, 2010 at 10:13 am
if it's not in the default trace, which onyl keeps track of "whodunnit" information on DDL stuff for a limited time, and you do not have any other traces in place, there is no way to find out;
SQL does not keep that information, just the create_date and modify_date
select name,create_date,modify_date from sys.objects
Lowell
August 27, 2010 at 2:07 pm
Lowell (8/27/2010)
select name,create_date,modify_date from sys.objects
In the above we can get only the modification date and time but we cant get from which system/user the table has been modified/created.
I dont think other than trigger it can be cccomplished.
Thanks
Parthi
Thanks
Parthi
August 27, 2010 at 3:33 pm
To track this information going forward, you could put in a database level trigger.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 27, 2010 at 3:51 pm
I have a db trigger for that, but those tables where create prior that trigger
August 27, 2010 at 4:01 pm
Check the default trace: http://www.sqlservercentral.com/articles/SQL+Server+2005/64547/
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply