Find amount of updated rows in T-SQL

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-05-01T17:25:45Z Indexed on 2010/05/01 17:37 UTC
Read the original article Hit count: 164

Filed under:
|
|

I need to find the amount of updated rows

UPDATE Table SET value=2 WHERE value2=1

declare @aaa int
set @aaa = @@ROWCOUNT

It doesn't work. How can I do that?

© Stack Overflow or respective owner

Related posts about ms

Related posts about sql