J
Jay
Hi
I am using a command object to call a stored procedure
and pass in parameters. The SP is inserting into an
orders table, and if no errors happen, into a orderdetail
table. If an error occurs a message is returned to the
user. The stored procdure works a treat when called from
Query Analyser and if an incorrect Customer ID is entered
a message is returned in an output paramater, if no error
occurs the rest of the order details are entered.
Using the ADO Command object, it all works fine if the
customerid and order details are OK, but if the
customerid is wrong (i.e. the customer doesn't exist) an
error is raised but nothing is passed back to the output
paramater in the command object. Any ideas how to get
the message would be great.
Thanks
Jay
I am using a command object to call a stored procedure
and pass in parameters. The SP is inserting into an
orders table, and if no errors happen, into a orderdetail
table. If an error occurs a message is returned to the
user. The stored procdure works a treat when called from
Query Analyser and if an incorrect Customer ID is entered
a message is returned in an output paramater, if no error
occurs the rest of the order details are entered.
Using the ADO Command object, it all works fine if the
customerid and order details are OK, but if the
customerid is wrong (i.e. the customer doesn't exist) an
error is raised but nothing is passed back to the output
paramater in the command object. Any ideas how to get
the message would be great.
Thanks
Jay