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
 General SQL Server Forums
 New to SQL Server Administration
 wrong update result on datetime column

Author  Topic 

nanolin8
Starting Member

17 Posts

Posted - 2011-01-11 : 21:50:30
we have update statement below but the result is not what we want.

update table schedule set edit_time='2011-01-07 11:13:53.240' where sch_id=1111

after the query is executed, when we select it, it shows edit_time='2011-01-11 07:03:22.115' where the time is exactly the query execution time.

Any idea what causes this?

Thanks,

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-01-11 : 22:25:33
Check for triggers on the table that are modifying the edit_time.
Go to Top of Page

nanolin8
Starting Member

17 Posts

Posted - 2011-01-11 : 22:56:12
make senses. will check. Thanks
Go to Top of Page
   

- Advertisement -