G
Guest
The customer has sql server 2000 with access 2000 client (adp).
From the client the operator start a delete followed by an insert into a sql
server table, about 150000 old records need to be deleted and then new
records are inserted. The delete and insert is done in a stored procedure
within a transaction block.
When an error occurs I do a rollback of the delete/insert operation.
I have noticed that insert sometimes create @@Error = 515. This initiates
the rollback and I return an error message "Error in insert operation, no
data is changed" as output parameter to the client.
The error message is not of much help to the operator. I need to trap the
full error text for @@error = 515. (Cannot insert the value NULL into column
...... etc) and return this message to the operator in connection with the
rollback. How can this be done?
Regards
Tore
From the client the operator start a delete followed by an insert into a sql
server table, about 150000 old records need to be deleted and then new
records are inserted. The delete and insert is done in a stored procedure
within a transaction block.
When an error occurs I do a rollback of the delete/insert operation.
I have noticed that insert sometimes create @@Error = 515. This initiates
the rollback and I return an error message "Error in insert operation, no
data is changed" as output parameter to the client.
The error message is not of much help to the operator. I need to trap the
full error text for @@error = 515. (Cannot insert the value NULL into column
...... etc) and return this message to the operator in connection with the
rollback. How can this be done?
Regards
Tore