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
 SQL Server Administration (2005)
 o rows return

Author  Topic 

montu
Yak Posting Veteran

60 Posts

Posted - 2008-02-19 : 20:44:03
is there is any way to find out whether my query return 0 rows inside a stored procedure.

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-02-19 : 22:27:45
Use 'select @@rowcount'.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-02-20 : 00:29:11
quote:
Originally posted by rmiao

Use 'select @@rowcount'. immediately after the select statement



Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -