 <p>The code language of classic ASP is VBScript, so you have to make do with the error handling capabilities of that language, by using the "On Error ..." construct. You need to decide on whether to make a general error handler or insert some specific error handling logic for the SQL calls.</p> <p>These are your options for error handling: </p> <pre><code>On Error Goto 0 ' Turns off error trapping. This is most likely what you got now On Error Resume Next ' In case of error, simply execute next statement. Not recommended ! On Error Goto &lt;label&gt; ' Go to the specified label on an Error. </code></pre> <p>If you use On Error Goto ..., The Err object will contain error information. This means you should be able to write somehting like:</p> <pre><code>On Error Goto errorHandler ' Your code here. errorHandler: ' Handle the error somehow. Perhaps log it and redirect to a prettier error page. Response.Write Err.Number Response.Write Err.Description </code></pre>