Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Another @@Error Question


Message #1 by "David E" <registerukh@h...> on Tue, 24 Apr 2001 09:54:53 -0400
I have a question about ASP and stored procedures (SQL Server).



In stored procedure, when I try to insert a duplicate record, the code 

breaks right there and the ASP displays the error message rather than the 

stored procedure executing IF @@ERROR <> 0 condition.

I dont think we have something like "on error resume next" in stored 

procedure. Do we?

But, when I put "on error resume next" in ASP script, the "If @@Error<>0" 

(in stored procedure) gets executed. But, right now I am in development 

stage and I dont want to use "on error resume next" as this statement will 

supress other errors (if any).



Any ideas as to how to go about this?



TIA




  Return to Index