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 Programming
 How to get updated record count in sql server

Author  Topic 

ckm214
Starting Member

1 Post

Posted - 2010-12-06 : 08:22:35
Hi ,
My requirement is :
SET @UpdateCount = (UPDATE tmp_test SET CLASS = '0000' WHERE CLASS= '3083')
thanks in advance
Krish



Krishna

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2010-12-06 : 08:26:48
UPDATE tmp_test SET CLASS = '0000' WHERE CLASS= '3083'
select @UpdateCount = @@rowcount

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -