Home > SQL Server Tips > Database Management and Administration > Using the database maintenance plan wizard
SQL Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DATABASE MANAGEMENT AND ADMINISTRATION

Using the database maintenance plan wizard


Barrie Sosinsky, Contributor
01.30.2003
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


SQL Server provides a convenient and friendly way to automate important tasks such as optimizations, integrity checks, full backups, and transaction-log backups. Using the Database Maintenance Plan wizard you can create one or more plans for each of your databases, or a plan to be used by one or more of your databases. To initiate the wizard, select the Database Maintenance Planner command from the Tools menu in the Enterprise Manager. You can also select the wizard from the Taskpad view, by right clicking on a server in the Management folder, or by right clicking on a database name and from the All Tasks command choosing Maintenance Plan.

After you name your plan you'll get a prompt to select the databases it applies to. The Update Data Optimization step allows you to reorganize your data and index pages, with options such as removing unused space from those files. Another step in the wizard provides a Database Integrity Check scan, using the DBCC CHECKDB command. Options for integrity checks provide for automatic repairs, suppressing a backup if an error is found for a check prior to backup, and deciding whether or not to check your indexes. Keep in mind that integrity checks are time consuming and should be done during hours of low activity.

The wizard offers you two types of backups, one full backup and another that backs up the transaction log. Full backup doesn't offer much in the way of options; you can choose to verify your backup, and you can also specify where the backup will be written, whether to tape or disk, and using which directory. An option also lets you automatically delete older backups. The transaction-log backup offers identical options. Part of the wizard's action is to write a log file called the Maintenance History. This history is optional, but recommended.

Once they are created, you can view maintenance plans in the left pane of the Enterprise Manager as part of the definition of a particular database. Click on the database's name, then on the Jobs icon. If you double-click on a plan, you open a multi-tabbed dialog box that lets you edit your plan.

While the Database Maintenance Plan wizard won't replace more specialized and refined enterprise tools such as SQL Server backup programs, this wizard does offer an administrator a quick and painless way to make sure that essential functions will be managed without hands on effort.


Barrie Sosinsky is president of consulting company Sosinsky and Associates (Medfield MA). He has written extensively on a variety of computer topics. His company specializes in custom software (database and Web related), training and technical documentation.


Rate this Tip
To rate tips, you must be a member of SearchSQLServer.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Microsoft SQL Server Tools and Utilities
Microsoft SQL Server Tools Guide
How SQL Server 2008 components impact SharePoint implementations
SQL Server Mailbag: Data restoration and DB property management
SQL language crash course (just enough to be dangerous)
Setting up SQL Server Service Broker for secure communication
Microsoft SQL Server 2008 Resource Governor primer
The sqlcmd utility in SQL Server
Performance analysis tools for SQL Server
Software security tools to improve your skills in a single day
Surface Area Configuration and other security tools in SQL Server 2005

Database Management and Administration
Using traces in SQL Server Profiler
Meet compliance requirements with improved database security practices
Hardening the network and OS for SQL Server security
Securing the server and database in SQL Server
How SQL Server 2008 components impact SharePoint implementations
Troubleshooting Distributed Transaction Coordinator errors in SQL Server
Achieving high availability and disaster recovery with SharePoint databases
Clearing the Windows page file and its effect on server performance
Deploying a SQL Server virtual appliance for Microsoft Hyper-V
How to create SQL Server virtual appliances for Hyper-V

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
ACID  (SearchSQLServer.com)
data aggregation  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



SQL Server Development - .NET, C#, T-SQL, Visual Basic
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts