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)
 no of rows returned from query

Author  Topic 

venkath
Posting Yak Master

202 Posts

Posted - 2007-08-01 : 06:43:09
Hi

Is there a way SQL Server records the number of rows returned by a Query

Eg..

If i execute a query

select * from emp

is there any variable SQL Server internally maintains to get the no of rows returned?

Thanks in advance.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-08-01 : 06:45:02
@@ROWCOUNT

I am amazed they skipped this information from Books Online!



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-08-01 : 06:49:10
Wait! They didn't.
It is filed under "number of rows affected by statement".



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -