SQL Script to find the database & their files details on a SQL Server
SQL Script to find database details Sometimes we need a SQL Script which can give the below information about the databases created on a SQL...
SQL Script: – How to find the database restoring history of SQL Server databases
SQL Script to find database restoring history Sometime we need to find out the history of database restoration to get the answers of following questions: -1)...
SQL Script: – How to find the last access date of a database
SQL Script to find database last access date Sometime we create databases on Test/ Development database servers for temporary uses for short duration and forgot...
SQL Script to find all the triggers defined on a database or on a single table
SQL Script to find triggers in SQL Database Sometime we need to find all the triggers defined on the database. So in this case, we...
Script to find complete months between two given dates
Complete months between two given dates Below script will help in finding the complete months within the 2 given dates. In the below script we...
Script to find the complete weeks within two given dates
Complete weeks within two given dates Sometimes we need to find out the complete weeks within two given dates. Below script will help in finding...
SQL Script to find the missing indexes
Script to find the missing indexes Performance tuning in SQL is important exercise and index creation is an important part of it. Sometimes base on the frequent...
SQL Script to find the list of all the jobs failed yesterday
One of the important task of any DBA is to find out all the jobs which are failed yesterday. Below SQL Script can be used...
SQL Script to search stored procedures containing a given text
Sometimes we need to find out how many stored procedures contains a given text. Below SQL query can be used to find out the list...
SQL Script to find the tables created from a given date
Below is the SQL query which can be used to find out the tables which are created or modified on or from a given date....