Project Description
T-SQL Database script that setup and automate database maintenance using SQL Agent an SQL Server DatabaseMail. Perform all maintenance good practices.
Click on the download button to the right to get latest YourSqlDba scripts. Previous versions are also shown in the Download section of this site. We recommend you to create a CodePlex account, sign-in, and from Download page click on "get email notification" to keep up with new releases.
VERSIONS HISTORY Each change introduced with every version is displayed Source Code/History section since version 5.2.2.1. This page also link them to the associated downloads. Download page provides also links to actual release and previous ones. Changes for version 5.2.2 are described here, and changes for version 5.2.1 are described here.
!!YourSqlDba Tool Overview
This project is essentially a T-SQL script which creates or updates a database that contains a set of SQL objects to automate maintenance. Stored procedure Install.InitialSetupOfYourSqlDba creates 2 SQL Agent jobs and their schedules to set automatic maintenance. It also sets a profile and account into SQL Server's Database Mail to be able to send you job reports and alerts. Install.InitialSetupOfYourSqlDba need to be run once after initial run of YourSqlDba script, and doesn't need to be re-run on next upgrades.
The first daily job perform general maintenance and the second perform recurrent log backups during the day.
Daily maintenance perform database physical integrity checks, optimizations, and backups. Some intelligence is put into the maintenance procedure to maintain a reasonable maintenance window, like reorganizing only indexes that needs to be and spreading update statistics on database's tables across a week. Database log shrinking is automatic when database log size grows beyond a size computed from the sum of combination of ratios of database file sizes. This avoid frequent log file shrinks, which is not suitable in regard to disk fragmentation, and makes reasonable log management.
Some parameters allows flexibility for dynamic database selection, backup retention, backup targets etc etc. This add a great deal of flexibility for more complex case of database administration.
The default parameters values provided in setup are good start-up values for those who are not sure how to perform database maintenance. Put simply, YourSqlDba fits nicely to the type of database management needed given your environment. In most cases no one is going to have to diverge from default setup to have a complete automatic maintenance solution. If your actual hardware doesn't cope with reasonable maintenance windows, you probably already have the necessary expertise to customize easily YourSqlDba's jobs and step parameters.
YourSqlDba provides a way to set up a "mirror server", which is in analogous to SQL standy server setup. Using this YourSqlDba's feature, insures you that you have valids full and log backups, since they are restored immediately to the standby server. This mean that all databases on the stanby server are at most as recent than the last log backup, which is set by default, to every 15 minutes. This feature is a must because it checks your backups. You must know that many recovery cases failures happen when backups thought valid were not. This feature avoids you that.
This feature is a must, as it tests most of your recovery strategy continuously. Another great use of YourSqlDba mirroring is to reduce migration window to few minutes when migrating your database to the next version of SQL Server. Read online documentation to see more details.
A lot of other useful stored procedure utilities come with YourSqlDba to handle complementary database administration.
T-SQL Database script that setup and automate database maintenance using SQL Agent an SQL Server DatabaseMail. Perform all maintenance good practices.
Click on the download button to the right to get latest YourSqlDba scripts. Previous versions are also shown in the Download section of this site. We recommend you to create a CodePlex account, sign-in, and from Download page click on "get email notification" to keep up with new releases.
VERSIONS HISTORY Each change introduced with every version is displayed Source Code/History section since version 5.2.2.1. This page also link them to the associated downloads. Download page provides also links to actual release and previous ones. Changes for version 5.2.2 are described here, and changes for version 5.2.1 are described here.
!!YourSqlDba Tool Overview
This project is essentially a T-SQL script which creates or updates a database that contains a set of SQL objects to automate maintenance. Stored procedure Install.InitialSetupOfYourSqlDba creates 2 SQL Agent jobs and their schedules to set automatic maintenance. It also sets a profile and account into SQL Server's Database Mail to be able to send you job reports and alerts. Install.InitialSetupOfYourSqlDba need to be run once after initial run of YourSqlDba script, and doesn't need to be re-run on next upgrades.
The first daily job perform general maintenance and the second perform recurrent log backups during the day.
Daily maintenance perform database physical integrity checks, optimizations, and backups. Some intelligence is put into the maintenance procedure to maintain a reasonable maintenance window, like reorganizing only indexes that needs to be and spreading update statistics on database's tables across a week. Database log shrinking is automatic when database log size grows beyond a size computed from the sum of combination of ratios of database file sizes. This avoid frequent log file shrinks, which is not suitable in regard to disk fragmentation, and makes reasonable log management.
Some parameters allows flexibility for dynamic database selection, backup retention, backup targets etc etc. This add a great deal of flexibility for more complex case of database administration.
The default parameters values provided in setup are good start-up values for those who are not sure how to perform database maintenance. Put simply, YourSqlDba fits nicely to the type of database management needed given your environment. In most cases no one is going to have to diverge from default setup to have a complete automatic maintenance solution. If your actual hardware doesn't cope with reasonable maintenance windows, you probably already have the necessary expertise to customize easily YourSqlDba's jobs and step parameters.
YourSqlDba provides a way to set up a "mirror server", which is in analogous to SQL standy server setup. Using this YourSqlDba's feature, insures you that you have valids full and log backups, since they are restored immediately to the standby server. This mean that all databases on the stanby server are at most as recent than the last log backup, which is set by default, to every 15 minutes. This feature is a must because it checks your backups. You must know that many recovery cases failures happen when backups thought valid were not. This feature avoids you that.
This feature is a must, as it tests most of your recovery strategy continuously. Another great use of YourSqlDba mirroring is to reduce migration window to few minutes when migrating your database to the next version of SQL Server. Read online documentation to see more details.
A lot of other useful stored procedure utilities come with YourSqlDba to handle complementary database administration.