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)
 update query status

Author  Topic 

jaggu.patil
Starting Member

3 Posts

Posted - 2009-06-02 : 02:05:05
Hi Friends,

I have simple query as Update.
If update query updates value properly i need to return 0 otherwise i need to return -1.

How can i achive this.

Thanks & Regards
--------------
Jagadish

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-02 : 02:14:09
Use the @@ROWCOUNT system function.


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -