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
 Transact-SQL (2005)
 How many rows updated in a table?

Author  Topic 

Rocio
Starting Member

1 Post

Posted - 2008-10-21 : 10:27:37
I need to know how many rows were updated in a X table I just update, but i believe there is some variable or a table that can help m with that, but I'm not sure... Please help!!!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-21 : 11:09:08
just use SELECT @@ROWCOUNT to get rows affected by last insert,update or delete operation.
Go to Top of Page
   

- Advertisement -