Hello,
I am using a recordset and command to activate a stored procedure on SQL Srver. I pass a date as a parameter to the stored procedure, and I wanted to know what to do when errors occure. Lets say the date I pass is not in a recognizable format, I get a error on the asp page from the SP. What I want to do is continue normally when there is no error, but show an appropriate message if there was an error.
How can I check if there was an error *before* the page "cannot be displayed"?
thanks,
Yael
I am using a recordset and command to activate a stored procedure on SQL Srver. I pass a date as a parameter to the stored procedure, and I wanted to know what to do when errors occure. Lets say the date I pass is not in a recognizable format, I get a error on the asp page from the SP. What I want to do is continue normally when there is no error, but show an appropriate message if there was an error.
Code:
----setting rs and cmd1 here-----
cmd1.CommandText="LibraryGetSentOrders"
cmd1.CommandType=4
cmd1.Parameters.Append cmd1.CreateParameter("id1",200,1,30,startDate)
set rs=cmd1.Execute ------> HERE I MIGHT GET THE ERROR
How can I check if there was an error *before* the page "cannot be displayed"?
thanks,
Yael