天极Yesky
  • 笔记本电脑
    笔记本
  • 台式电脑
    台式机
  • 手机
    手机
  • 电脑硬件DIY
    DIY硬件
  • CPU
    主板
    音箱
  • 硬盘
    显卡
    键鼠
  • 内存光驱
    显示器
    机箱电源

  • 数码相机DC
    数码相机
  • MP3播放器
    MP3/MP4
  • 数码摄像机DV
    摄像机
  • 电脑外设
    外设
  • 网络
    网络
  • 服务器
    服务器
  • 数字家庭
    数字家庭
  • 群乐
    群乐
  • 产品报价 行情 商家 新闻 评测 | 软件 设计 网页 开发 安全 论坛 E时代 游戏 图片 壁纸 下载 网摘 博客 索尼专区 Vista 科技奥运
    天极网
    Use the database maintenance plan wizard
    作者: Barrie Sosinsky
    出处:
    责任编辑:
    [ 2004-06-17 19:06 ]


    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.

    笔名:
    请您注意:

     遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。

     天极网拥有管理笔名和留言的一切权利。
    相关内容