December 11, 2008 at 8:20 am
Can anyone help me create a script that will tell me who is making changes to the database? I would like the user name, what they did and when they did it.
Thanks
December 11, 2008 at 9:46 am
May I suggest that you read Books On Line (DDL Triggers) starting with
http://technet.microsoft.com/en-us/library/ms190989(SQL.90).aspx
This will lead you to other pages which are quite specific, with example code, which I hope will answer your question.
December 11, 2008 at 11:16 am
Thanks
December 11, 2008 at 11:36 am
By "changes to the database" do you mean changes to the data or changes to the definitions and structures?
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
December 11, 2008 at 11:39 am
Yes, I mean changes to the data or changes to the definitions and structures.
December 11, 2008 at 12:17 pm
nwinningham (12/11/2008)
I would like the user name, what they did and when they did it.
Define what you mean and want for "what they did". The answer to this determines how hard this is and how much overhead is involved.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
December 11, 2008 at 12:22 pm
I just want to know what type of modification was done.(delete, insert, update)
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply