SQL Server Storage Engine

SP2 Maintenance Plan bugs fixed

From the tools team here in Redmond:

We recently posted updates to address an issue in two SP2 Maintenance Plan
tasks. The KB article describes the symptoms as follows:

FIX: The Check Database Integrity task and the Execute T-SQL Statement task
in a maintenance plan may lose database context in certain circumstances in
SQL Server 2005

In Microsoft SQL Server 2005 Service Pack 2 (SP2), the following tasks in a
maintenance plan may lose database context in certain circumstances:
. Check Database Integrity
. Execute T-SQL Statement
For example, if a Check Database Integrity task is configured to check
integrity on multiple databases, the task repeatedly checks the default
database.

For the Execute T-SQL Statement task, this problem occurs if the following
conditions are true:
. The Execute T-SQL Statement task contains multiple batches.
. The batches are separated by the GO statement.
. No batches use the USE statement to specify the database.
. The statements in each batch do not contain the database name.
In this scenario, those statements in the second batch and in succeeding
batches will be executed against the default database.

This fix is shipped in two different packages:
. The GDR release is available via http://support.microsoft.com/kb/934458
. The QFE release is available via http://support.microsoft.com/kb/934459

What is the difference between a GDR and QFE release? GDRs are a new means
of providing support. GDR fixes are reserved for those issues identified by
SQL Server support as important enough to install on every instance of SQL
Server. QFEs are used for the majority of fixes where the effects of the
problem are not widespread or severe enough to warrant a GDR.

GDRs and QFEs are associated with certain build numbers. Build numbers 3043
through 3149 are reserved for GDR releases. Build numbers 3150 and up are
reserved for QFEs. By reserving lower build numbers for GDR releases, users
can continue to take advantage of GDR fixes, without having to install QFEs,
which aggregate all the fixes shipped since the most recent service pack.
Once a QFE is installed, GDRs will no longer update your system, because the
build number is too low, and you have to install QFEs to pick up new fixes.

Why is this fix a GDR? This fix was promoted to GDR because users that
relied on the Check Database Integrity task to validate their databases were
not informed of database integrity issues that they expected to be detected.
The fix also addresses issues in the Execute T-SQL task, but, since these
issues typically lead to script failure, duly noted by SQL Server, the T-SQL
issues alone were not enough to justify the GDR.

Those users who now, or in the future, rely on the Check Database Integrity
Task or the Execute T-SQL task in a maintenance plan should install the GDR.
Others may skip the GDR.

Published Thursday, April 12, 2007 5:31 PM by Paul Randal - MSFT
Anonymous comments are disabled

About Paul Randal - MSFT

Paul started in the industry in 1994 working for DEC on the VMS file system and check/repair tools. In 1999 he moved to Microsoft to work on SQL Server, specifically on DBCC. For SQL Server 2000, he concentrated on index fragmentation (writing DBCC INDEXDEFRAG and DBCC SHOWCONTIG) plus various algorithms in DBCC CHECKDB. During SQL Server 2005 development Paul was the lead developer/manager of one the core dev teams in the Storage Engine, responsible for data access and storage (DBCC, allocation, indexes & heaps, pages/records, text/LOB storage, snapshot isolation, etc). He also spent several years rewriting DBCC CHECKDB and repair. For SQL Server 2008, Paul managed the Program Management team for the core Storage Engine to become more focused on customer/partner engagement and feature set definition. In 2007, after 8.5 years on the SQL Server team, Paul left Microsoft to join his wife, Kimberly Tripp, running SQLskills.com and pursuing his passion for presenting and consulting. Paul regularly presents at conferences and user groups around the world on high-availability, disaster recovery and Storage Engine internals. His popular blog is at http://www.sqlskills.com/blogs/paul/.

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker