Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get # of records "affected by" statement

Status
Not open for further replies.

alistairpaul

Programmer
Apr 11, 2001
100
US
Similar to the @@ERROR, is there a way to programmatically get the number of records affected by a SQL Statement issued by a program?

MS SQL Server 7.0 If my post was helpful, please Mark it below. Thanks! - Al
 
Okay - I found it myself -

For anyone that needs to know, use:

SELECT @@ROWCOUNT

to get the number of rows affected by a statement issued against SQL Server. If my post was helpful, please Mark it below. Thanks! - Al
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top