Welcome to SSQA.net Sign in | Join | Help

SQL Server Storage Engine & Tools (SSQA.net)

SQL Server Tools includes storage engine that includes a complete set of graphical tools and command prompt utilities that allow users, programmers, and administrators. SSMS, SSRS, SSIS & SSAS are most commonly used tools.
SQL Server 2005 - adhoc script to perform backup, restore and integrity checks/optimization jobs without Database Maintenance plans?

As a DBA you might be aware that since SQL Server 2005 database maintenace plans have given flexibility in deploying the workflow of tasks required to make sure that your database is optimized, is regularly backed up, and is free of inconsistencies in addition to the avoiding the fragmentation on indexes with optimization tasks.

This may be a good solution of smaller farm of databases deployment, but there is more to do with large-scale databases deployment such as adhoc mode of optimization and integration tasks to the selective databases, which is not possible to use with DB maintenance plans as you can create the core maintenance plan, but creating plans manually gives you to choose the number of databases or set of databases you have to take care. Again for the inclusion of database on selective purpose it may not be feasible to create 'n' number of plans that can confuse the way of managing plans in longer term. By default you have to be expert in SSIS as this maintenace plan internally uses Integration Services package, which is run by a SQL Server Agent job.

Its worth to mention that for the database BACKUP strategy (for all) you can easily deploy the maintenance plan route that will ensure to continue this important aspect of DBA responsibility, within my end I have no problem managing more than 1000+ databases via this process where I have differentiated the plans according the size of databases, such as database between 0 and 5gb will have 1 plan, between 5 and 15 gb databases would have seperate maintenance plan and so on. Also these plans will be running at different times in order to ensure they complete successfully and server is not hammered with this process at the same time due to the historic issues we have had on this database server.

During the recent times on the forums & newsgroups I have seen many people asking for a script or solution to perform the adhoc and selective process of integrity checks & optimization, as it is not that feasible to peforming with maintenance plan route. In this regard I have found an excellent blog entry from Ola Hallengren about performing SQL Server 2005 - Backup, Integrity Check and Index Optimization tasks with a script. I recommend to download and test his scripts in order to deploy flexible solution within your database environment.

 

Posted: Tuesday, April 29, 2008 3:14 AM by SQL Master

Comments

Other SQL Server Blogs around the Web said:

As a DBA you might be aware that since SQL Server 2005 database maintenace plans have given flexibility

# April 29, 2008 3:14 AM

TrackBack said:

# May 6, 2008 3:43 AM

TrackBack said:

# May 6, 2008 3:43 AM

TrackBack said:

# May 6, 2008 3:43 AM

Jose Young said:

Thanks for sharing the link to the script. As for separate sql backup you can also use special 3rd party solutions that can give some extra useful abilities.

LiteSpeed http://www.scriptlogic.com/products/litespeed is a good example of such one.

I've been using it for several years with a great success and can suggest it to everybody who is looking for powerful sql databases backup way.

The tool works pretty fast and compresses all backups up to 80-90 percent of original database size so it's great for disk space saving.

Hope this was useful!

# May 16, 2008 7:49 AM
Anonymous comments are disabled