What can be returned from a sql execute command without a sp? I want to report an error if it occurs - ie if the transaction is rolled back. I've only had any success with the RecordsAffected property on the Execute method. My sql statement consists of multiple inserts, this only seems to return the result from the 1st insert. Can an error code be returned or can a variable from within the statement be returned.
I don't think i can use a sp as the sql statement is built dynamically, or is it possible to build and then delete a sp from within asp?
Thanks in advance!
I don't think i can use a sp as the sql statement is built dynamically, or is it possible to build and then delete a sp from within asp?
Thanks in advance!