Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SP _ errors

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
GB
I have a stored procedure that does a bulk insert and a number of other updates, what I need to do is return a value to an asp page that syas whether the process havs been successful or not! is this possible?

Tim
 
the problem I am getting is that the sp is erroring so the asp page just displays the error

Could not bulk insert. File 'c:\bulk\pos\us\ingram_micro\0502.csv' does not exist.

what I need to do is be able to return to the page a custom error from the sp, depending on when it errored. if I put on error resume next at the top of the page it gets rid of this but the asp

strSQL = ""&sp&" '"&filename&"' "
set disti=posconn.execute(strSQL)
------------DOESN't GET TO HERE??????-------------
disti.close

so I can't get anything that the sp returned!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top