You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+78Lines changed: 78 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1701,6 +1701,84 @@ END;
1701
1701
1702
1702
#### Q. How can you raise custom errors from stored procedure?
1703
1703
1704
+
**✅ Raising Custom Errors from a Stored Procedure in SQL Server**
1705
+
1706
+
In SQL Server, you can raise custom errors from a stored procedure using the RAISERROR statement (for older versions) or THROW (introduced in SQL Server 2012and preferred for modern code).
0 commit comments