C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How to use Try catch in sql server and print the error message
WhatsApp
Karthikeyan Anbarasan
14y
3.8
k
0
0
25
Blog
BEGIN TRY
DELETE FROM tablesamaple where strsampletodelete = 'todelete'
END TRY
BEGIN CATCH
Print ERROR_MESSAGE()
END CATCH
This blog shows on how to use Try catch in sql server and print the error message
People also reading
Membership not found