Category Archives: SQL Scripts

How to Truncate only the Selected Tables from Database

How to Truncate only the Selected Tables from Database How to Truncate only the Selected Tables from Database? This stored procedure helps you out in truncating the selected tables. These tables has to be passed as a string parameter to … Continue reading

Posted in SQL Scripts | Tagged , , , , | Leave a comment

How to rebuild Master Database in SQL Server

How to rebuild Master Database in SQL Server We recently resolved a request from a client that he is not able to access a SQL machine. We have logged into the sql box and we cam to know that the … Continue reading

Posted in SQL Scripts, SQL Server DBA | Tagged , , , , , , | Leave a comment

How to use CASE in Where Condition

How to use CASE in Where Condition We had a situation in which we had to use case in where condition. This post helps in understanding “How to use CASE in Where Condition”. Lets consider a situation where we need … Continue reading

Posted in SQL Development, SQL Scripts | Tagged , , , | Leave a comment