|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
@@Error problem: Critical errorsHi, I am trying to catch a critical error. The code below should
deliberately fail as it tries to insert an string into a table attribute. Sure enough the update fails but I can't seem to catch the error UPDATE IdentityCheck SET DateInserted='INVALIDDATE' if @@error<>0 BEGIN print 'An error has occurred' END Help appreciated Thanks Markus |
|||||||||||||||||||||||