How to use SQL Server profiler to capture and debug the queries executed from inside the stored Procedure? Here is the step by step instruction for debugging queries inside stored procedure using profiler.
Simple and clean method to escape special characters using STRING_ESCAPE system function. STRING_ESCAPE function was introduced in SQL 2016. Here we will see how to use it to escape dome of the special characters.
How to copy tables from one database to another database In SQL Server? Here is a quick tip to copy a table along with it’s table structure from one SQL Server database to another database on the same server.
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