SQL Script to find database details Sometimes we need a SQL Script which can give the below information about the
Continue readingTag: DBA Scripts
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
Continue readingSQL 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
Continue readingSQL 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.
Continue readingScript 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.
Continue readingScript 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
Continue readingSQL 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.
Continue readingSQL 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
Continue readingSQL 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
Continue readingSQL 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
Continue reading