Try catch in sql server and print the error message

Karthikanbarasan
Posted by Karthikanbarasan under Sql Server category on | Points: 40 | Views : 5002
BEGIN TRY

DELETE FROM tablesamaple where strsampletodelete = 'todelete'

END TRY
BEGIN CATCH
Print ERROR_MESSAGE()
END CATCH

Comments or Responses

Login to post response