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)
 Sql Error Messge

Author  Topic 

rsiddiqi
Starting Member

4 Posts

Posted - 2005-08-31 : 19:35:20
Hey Guys,

Is it safe to assume all error messages in SQL look like

"Server: Msg 8134, Level 16, State 1, Line 1
Divide by zero error encountered."

So..having a "Msg", "Level", "State" and a "Line" in them?

I'm returning the output of a procedure as a string (using xp_cmdshell), and trying to catch the error messages in a log file. Need a pattern to match the error messages on.

Thanks

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-09-01 : 01:07:40
Refer Error handling technics here
http://www.sommarskog.se/error-handling-I.html
http://www.sommarskog.se/error-handling-II.html

Madhivanan

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

- Advertisement -