Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
T-SQL (SS2K8)
»
How to find out who updated/Deleted on SQL...
How to find out who updated/Deleted on SQL Server
Rate Topic
Display Mode
Topic Options
Author
Message
Shadab Shah
Shadab Shah
Posted Monday, December 10, 2012 2:03 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: 2 days ago @ 6:48 AM
Points: 160,
Visits: 334
Hi,
How to find out who deleted or updated the values in table in SQL Server. This scenario may occur when there are more than one user who had the access for the same DB.
Post #1394489
anthony.green
anthony.green
Posted Monday, December 10, 2012 2:07 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
Do you have custom auditing in place?
Do users login with a generic username or do they have their own username?
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1394491
Shadab Shah
Shadab Shah
Posted Monday, December 10, 2012 3:29 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: 2 days ago @ 6:48 AM
Points: 160,
Visits: 334
anthony.green (12/10/2012)
Do you have custom auditing in place?
Do users login with a generic username or do they have their own username?
Do you have custom auditing in place?. I am not able to get it. But if you mean to say that do we manually audit the database using some queries orr by following the process then the answer is no.
Do users login with a generic username or do they have their own username? Yes each user has its unique name and password.
Post #1394517
anthony.green
anthony.green
Posted Monday, December 10, 2012 3:31 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
As you dont have custom auditing in place, finding historic updates/deletes will not be possible.
Look at building custom auditing procedures on the tables you require to know who updated / delete the row, but this will only log future requests, not historic requests.
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1394519
Shadab Shah
Shadab Shah
Posted Monday, December 10, 2012 4:09 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: 2 days ago @ 6:48 AM
Points: 160,
Visits: 334
anthony.green (12/10/2012)
As you dont have custom auditing in place, finding historic updates/deletes will not be possible.
Look at building custom auditing procedures on the tables you require to know who updated / delete the row, but this will only log future requests, not historic requests.
Is it possible to find out whether who run alter statement , if auditing process is not there
Post #1394531
anthony.green
anthony.green
Posted Monday, December 10, 2012 4:13 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
You could check the default trace, but that only keeps so much information before it is lost, so highly unlikely that it will be in the trace.
Again custom auditing would be the one for that.
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1394533
Shadab Shah
Shadab Shah
Posted Monday, December 10, 2012 4:23 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: 2 days ago @ 6:48 AM
Points: 160,
Visits: 334
anthony.green (12/10/2012)
You could check the default trace, but that only keeps so much information before it is lost, so highly unlikely that it will be in the trace.
Again custom auditing would be the one for that.
Now what is this default trace??
Post #1394538
anthony.green
anthony.green
Posted Monday, December 10, 2012 4:24 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
http://www.sqlservercentral.com/articles/SQL+Server+2005/64547/
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1394539
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.