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)
 @@rowcount : buggy?

Author  Topic 

Non-conformer
Starting Member

14 Posts

Posted - 2006-03-31 : 11:54:50
Has anyone out there experienced intermittant problems with the @@rowcount function?

I've observed some strange situations where it returns zero when it wasn't supposed to. But naturally, I can never duplicate the error in a controlled setting.


Keep it simple.
NC

Srinika
Master Smack Fu Yak Hacker

1378 Posts

Posted - 2006-03-31 : 12:10:16
@@rowcount will be zero in some situations
eg.
any statement that does not return rows, such as an IF statement.
[Taken from BOL]


Srinika
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-04-03 : 01:37:36
Read more about @@rowcount in sql server help file

Madhivanan

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

- Advertisement -