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 Administration (2000)
 RE: Error trapping - Restore Log

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-11-26 : 09:17:21
Yoshi writes "Hello. Im using SQL server 7.0 with latest service pack patched.
When executing command such as "Restore Log..." in stored procedure, it returns two error message by executing one command (in this case "Restore Log"). Using @@Error, you can only get a information of last error, not the 1st one.
In v6.5, you could use syslogs table but not version 7.0.
How can you trap the 1st error when one commnad returns more than 2 errors in stored procedue?

Thank you in advance.

Yoshi"

ValterBorges
Master Smack Fu Yak Hacker

1429 Posts

Posted - 2002-11-26 : 09:22:50
Read the following:

http://www.sqlteam.com/item.asp?ItemID=6881
http://www.sqlteam.com/item.asp?ItemID=2290
http://www.sqlteam.com/item.asp?ItemID=2463
http://www.sqlteam.com/item.asp?ItemID=208

Go to Top of Page
   

- Advertisement -