Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

System Center Configuration Manager 2007 : Database Maintenance

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
10/30/2012 4:29:53 PM
When maintaining the ConfigMgr 2007 site database, it is vital to back up the database. An effective backup strategy is crucial to providing a functional database environment for ConfigMgr; however additional tasks also need to occur to maintain your ConfigMgr database effectively.

Tip: Why Do a Separate Database Backup?

Are there situations where an administrator would want to do a separate database backup if the site maintenance task is handling the backup? A common reason for performing a separate database backup is that by default the maintenance task overwrites the previous backup file. There are ways to deal with this situation by adding the after-backup.bat file to specify which commands should be run after a backup (such as moving the backup file so that it would not be overwritten and stored for longer periods of time), but a simpler solution might be to perform a separate database backup.


Database maintenance is performed using two tasks defined during site installation. These tasks are available in the ConfigMgr console, at Site Database -> Site Management -> <Site Code> <Site Name> Site Settings -> Site Maintenance -> Tasks. The two tasks of note for database maintenance are the Monitor Keys and Rebuild Indexes tasks:

  • Monitor Keys— This task is enabled by default and runs on Sunday mornings between 12:00 AM and 5:00 AM. ConfigMgr works like other database applications in that it uses primary keys to identify unique records in a table quickly. A primary key is a column (or multiple columns) that uniquely identifies one row from any other row in a database. The ConfigMgr Monitor Keys task monitors the integrity of these keys within the ConfigMgr database. As ConfigMgr runs this task itself, the responsibility of the ConfigMgr administrator is to audit this task is occurring and completing successfully when it executes.

  • Rebuild Indexes— By default, the task is enabled. This task runs every Sunday between 12:00 AM and 5:00 AM. ConfigMgr, similar to other database applications, uses indexes to speed up data retrieval. As the data in the ConfigMgr database constantly changes, this task improves performance by creating indexes on database columns that are at least 50% unique. The task also drops indexes on columns that are less than 50% unique and rebuilds all the existing indexes to maximize the performance when accessing these columns.

Tip: Running Rebuild Indexes with a Large Amount of Database Data

If your ConfigMgr site database holds a large amount of data, the Rebuild Indexes task can take a considerable amount of time to run. This task is different from most tasks in that running it more frequently does not guarantee a shorter execution time but ensures your ConfigMgr site uses the database in the most efficient manner.


If there are additional database maintenance tasks required beyond the Monitor Keys and Rebuild Indexes tasks, you can add them through the SQL Commands section of the ConfigMgr console (at Site Database -> Site Management -> <Site Code> <Site Name> Site Settings -> Site Maintenance -> SQL Commands). To add new SQL commands to run custom maintenance tasks against the ConfigMgr 2007 site database, right-click on SQL Commands in the console and choose New SQL Commands. The New SQL Command screen (shown in Figure 1) provides a dialog box to define the name of the task, the SQL command to execute, where to log status information to, and a section to schedule when the maintenance task would occur.

Figure 1. Configuring a custom SQL command to provide maintenance for the ConfigMgr database


You can use custom SQL commands to run a SQL command (up to 255 characters) or execute an existing stored procedure. There are several SQL commands available that provide maintenance functionality. Some examples of the types of SQL maintenance you can run include the following:

  • DBCC CHECKDB (Database Consistency Check)— This is a stored procedure that checks the logical and physical integrity of all objects in the site database. Here are some of the tasks the DBCC CHECKDB stored procedure performs:

    • Executing a DBCC CHECKALLOC on the database

    • Performing DBCC CHECKTABLE on every table and view in the database

    • Executing a DBCC CHECKCATALOG on the database

    • Validating the contents of every indexed view in the database

    • Validating the Service Broker data in the database

  • sp_monitor— This system procedure displays SQL Server activities and statistics.

  • sp_spaceused— This command displays the number of rows, disk space reserved, and disk space used by a table in the current database. It also displays the disk space reserved and used by the entire database.

  • sp_who— This system procedure determines the number of SQL Server connections currently in use by ConfigMgr 2007 and other processes.

  • xp_sqlmaint— This command runs database maintenance tasks.

Properly maintaining your ConfigMgr database environment can go a long way toward maintaining the functionality and performance of your ConfigMgr environment.

Other -----------------
- Connecting Dynamics GP to Microsoft Office 2010 : Improving reports by sending SmartLists to Word
- Connecting Dynamics GP to Microsoft Office 2010 : Building analyses by Exporting SmartLists to Microsoft Excel, Delivering flexibility by exporting Navigation Lists to Excel
- Oracle SOA Suite 11g R1 : Securing the credit card validation service
- Oracle SOA Suite 11g R1 : Introducing security policy management
- InfoPath with Microsoft Content Management Server Web Services : Cleaning up the Generated Form
- InfoPath with Microsoft Content Management Server Web Services : Creating the Controls in InfoPath
- Installing Exchange Server 2010 : Post-setup configuration (part 2) - Add a certificate to the Client Access Server role
- Installing Exchange Server 2010 : Post-setup configuration (part 1) - Configure a Send Connector to the Internet
- Installing Exchange Server 2010 : Installing the Edge Transport Server
- BizTalk Server 2009 Operations : Scalability and High Availability
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server