How will you return error message in SQL Server stored procedure? Capturing the exception occurred in a stored procedure and returning the error message to the calling application is important in SQL Server programming. Here is the method to return the error message from a stored procedure.
How to create an unique constraint that allow multiple nulls? Using filtered index you can create unique constraint with multiple nulls. Using this you can store any number for NULL in a unique constraint column
Quick methods to list all foreign keys referencing a table in SQL Server using execution of simple TSQL scripts and SSMS GUI. Ways to identify all the tables referencing a table with foreign key constraint