June 14, 2012 at 6:33 am
We have a situation where the Data we have was modified in the last 24hrs. I have come to the conclusion that some Triggers functioning in the Database have updated some Tables which have caused the change in the Data.
Is there a way I can List all List Columns from all tables Updated(By Triggers) in the last 24 hrs?
June 14, 2012 at 6:51 am
No, SQL Server doesn't track such things.
You will need to review your triggers (you can use handy Search add-on from Redgate) and find which one do update your columns, you may need to add additional code to trace which triggers create a problem for you.
June 14, 2012 at 7:10 am
- it's all in your db log, but it may take some effort to get it out ... or a vendor tool.
- Is this a one time operation or is your goal continuous follow up ?
If the latter, maybe it's time to investigate CDC.
Check out the series Roy Ernest[/url] published at SSC
http://www.sqlservercentral.com/articles/Auditing/75790/
http://www.sqlservercentral.com/articles/SQL+Server/77040/
http://www.sqlservercentral.com/articles/Auditing/90178/
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
June 14, 2012 at 9:52 pm
Right now it is supposed to be a one time affair but continuous Follow up is also on my mind so that I can double check sometimes and make sure nothing of this sort happens again.
Thanks for the advice Johan. I'll have a look at CDC and also see where I can get with the Logs.
June 14, 2012 at 10:03 pm
I am really sorry guyz.....I forgot to mention that our server is SQL Server 2005.
I am really sorry to have posted in the wrong Section.
Johan, your solution of CDC was introduced in SQL Server 2008. So, I would have to stick to analyzing the Log.
Still, please update me if there is something close to CDC in Sql Server 2005.
June 15, 2012 at 12:08 am
vinu512 (6/14/2012)
I am really sorry guyz.....I forgot to mention that our server is SQL Server 2005.I am really sorry to have posted in the wrong Section.
Johan, your solution of CDC was introduced in SQL Server 2008. So, I would have to stick to analyzing the Log.
Still, please update me if there is something close to CDC in Sql Server 2005.
Aarch... bummer on the version.
Back to triggers or a log analyser solution.
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply