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
 Transact-SQL (2000)
 How many rows are returned

Author  Topic 

hasanali00
Posting Yak Master

207 Posts

Posted - 2004-12-02 : 06:56:33
How can I write a Select command that tells me how many rows are returned.

the SQL Query Analyser does show this automatically, but any other option usign SQL??

Andraax
Aged Yak Warrior

790 Posts

Posted - 2004-12-02 : 07:03:16
Hello!

You can use select @@rowcount, this returns the rowcount for the latest statement.
Go to Top of Page
   

- Advertisement -