Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Track changes on table column

Author  Topic 

ljp099
Yak Posting Veteran

79 Posts

Posted - 2011-10-28 : 09:21:42
I have a datetime column on a table that is being updated every morning at 4am with a date value that is a future date. I cannot find or figure out what is causing this update to occur every morning at this time with a future day (36 hours in the future). I don't know how I can monitor/track the updates made to the table. How can I identify what is making this update so I can stop and fix the issue?

Thanks

X002548
Not Just a Number

15586 Posts

Posted - 2011-10-28 : 10:04:57
check sql server agent and see if there is a job running

Other than that, run a sql server profiler trace on your local machine overnight to save all the activity

Then fire the JO



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2011-10-28 : 10:05:44
Or remove everyones access..but I betcha it's a job

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2011-10-28 : 11:04:22
"Or remove everyones access"

I love a good "scream" test
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-10-28 : 11:08:51
still if you can find it then add an instead of trigger for update and check if updation time is 4 am and bypass it to do nothing

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2011-10-28 : 11:35:47
"instead of trigger for update"

Or an AFTER trigger with ROLLBACK perhaps? (Less arduous to write, I reckon )
Go to Top of Page
   

- Advertisement -