• Thanks for the reply.

    Table variables can be handy if we want to capture more info other the error message, like some record which got failed, the user who tried to insert that record . This was a pretty simple demo example. Consider a case where some user was doing some insert which contained this error, we can capture the record he was trying to insert, info about him, i mean more specific details about the error.