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 2000 Forums
 SQL Server Development (2000)
 SQLROWCOUNT

Author  Topic 

Brad
Starting Member

13 Posts

Posted - 2000-09-07 : 22:52:03
In ODBC, I can use SQLROWCOUNT to get back the affected rows after running an update, delete or insert statement. Is there a command that will give me the rowcount of a select without having to run a count first or looping through the recordset? I just need the row count to create a status indicator. It seems awful expensive to have to run an extra query or loop through the result set.


SQL 7.0 SP1, NT 4.0 Enterprise SP5

   

- Advertisement -