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)
 records affected

Author  Topic 

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2007-08-13 : 06:40:27
I am running an update query on a table.
Is there a sql code to find out how many records have been affected?
Thanks

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2007-08-13 : 07:03:08
From BOL: @@ROWCOUNT
Returns the number of rows affected by the last statement.



[Signature]For fast help, follow this link:
http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx
Learn SQL
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2007-08-13 : 09:39:54
Solved. thanks
Go to Top of Page
   

- Advertisement -