I've been scratching my head with this for a couple of hours already... This is what's going on:
I run this statement
SELECT STATUS FROM [dbo].[TMP_TEST_CALL_LIST] where identity = '659303186000000000'
and I get the following result (a single row):
'Y'
Then I run this statement
update [dbo].[TMP_TEST_CALL_LIST] set status='Z' where identity = '659303186000000000'
and I get THIS!!!:
(1 row(s) affected)
(1 row(s) affected)
As if 2 statements would have been executed!
But it gets worse... even if I run it like this:
update [dbo].[TMP_TEST_CALL_LIST] set status='Z' where identity = '659303186000000000' AND status ='Y'
it will give me the same "double" result. And if I run it with a WHERE clause that doesn't match any records it will tell me 0 rows(s) affected... twice.
The (even more) spooky thing is that this is happening to some tables in the DB, and not to others. I can't figure out what the differences between the tables are.
H E L P ! ! !
Thanks.
Note: this is SQL Server 2008 R2