|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Preventing error messages being displayed
Originally posted by : Karsten (edvsk@web.de)i'm using the connection execute property. If a execute statement fails (i.E. stored procedure name is wrong) the error is displayed. How can I prevent this for building my own error handler.
|
|
#2
|
|||
|
|||
|
Originally posted by : Mike Hingley (mike.hingley@aquila-networks.co.uk)If you are using VB, then following should work
n error goto ERRHANDLE:ErrhandleHowever I don't know whether the goto directive is supported in VB Script - Therefore the following may be more useful:On error resume nextAfter a line which may cause an error, the contents of ERR will return the last error 0 = no error------------Karsten at 9/15/2001 4:36:16 AMi'm using the connection execute property. If a execute statement fails (i.E. stored procedure name is wrong) the error is displayed. How can I prevent this for building my own error handler. |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Preventing error messages being displayed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|