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.
| Author |
Topic |
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-06-13 : 06:54:56
|
| Dear all,How to Capture SQL Generated ErrorFor Ex: Server: Msg 15009, Level 16, State 1, Procedure sp_help, Line 70 The object 'test' does not exist in database 'COMMON'.i Need to Capture the error.Please give me ur suggesionsThanksKK |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2006-06-13 : 06:57:56
|
| Usually this sort of error prevents the sp from compiling and is only trappable in the client.try thiscreate proc basselect * from xxxxxselect @@errorgocreate proc aasdeclare @rc intexec @rc = bselect @rc, @@errorgonow execute a==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-06-13 : 07:12:54
|
| Fine nrThanksKK |
 |
|
|
|
|
|