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)
 Stored procedure

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-06-08 : 07:56:42
kishore writes "In the stored procedure, i am updating some records(in the middle of the procedure),After updating i want to know how many records are updated. Based on this condition my procedure will continue."

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2004-06-08 : 08:25:17
look at @@rowcount
Go to Top of Page

srinivasanr
Starting Member

15 Posts

Posted - 2004-06-08 : 08:27:31
Hi,
Use
SET NOCOUNT OFF
and get @@ROWCOUNT to a variable

Wallops !!
Go to Top of Page
   

- Advertisement -