This is going to be far-fetched, I know, but my immediate supervisor has asked if it would be possible to return any record(s) that causes an error. I told him I would investigate, but I didn't think it was possible.
For example, if we have an INSERT statement to move 100,000 records into a table, but one record doesn't meet the Foreign Key, he wants to be able to get back that one record when the Stored Procedure fails. We're already logging the procedure, error message, and relative area of the procedure, but I guess that's not good enough for him. = )
Thanks!
*Note - We do have checks and balances to ensure that we don't try to push a record that won't meet the constraints of a table. That is just an example.
For example, if we have an INSERT statement to move 100,000 records into a table, but one record doesn't meet the Foreign Key, he wants to be able to get back that one record when the Stored Procedure fails. We're already logging the procedure, error message, and relative area of the procedure, but I guess that's not good enough for him. = )
Thanks!
*Note - We do have checks and balances to ensure that we don't try to push a record that won't meet the constraints of a table. That is just an example.