Microsoft KB Archive/912322

= FIX: An application query that reads lots of data may be slow, and the SQL Server service may take a long time to start in SQL Server 2005 =

Article ID: 912322

Article Last Modified on 7/26/2006

-

APPLIES TO


 * Microsoft SQL Server 2005 Standard Edition
 * Microsoft SQL Server 2005 Standard X64 Edition
 * Microsoft SQL Server 2005 Standard Edition for Itanium-based Systems
 * Microsoft SQL Server 2005 Workgroup Edition
 * Microsoft SQL Server 2005 Express Edition

-



Bug #: 20011905 (SQLBUDT)



''Microsoft distributes Microsoft SQL Server 2005 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2005 fix release.''



SUMMARY
This article describes the following about this hotfix release:
 * The issues that are fixed by the hotfix package
 * The prerequisites for installing the hotfix package
 * Whether you must restart the computer after you install the hotfix package
 * Whether the hotfix package is replaced by any other hotfix package
 * Whether you must make any registry changes
 * The files that are contained in the hotfix package



SYMPTOMS
After you restart a computer that is running Microsoft SQL Server 2005, the following problems may occur:
 * When SQL Server starts, an application query that reads lots of data as soon as the query connects may be slow.
 * The SQL Server service may take a long time to start.

Note These problems do not occur in Microsoft SQL Server 2005 Enterprise Edition, in Microsoft SQL Server 2005 Developer Edition, or in Microsoft SQL Server 2005 Evaluation Edition.



CAUSE
These problems occur because some types of intensive front-end application queries may have long compilation waiting times when SQL Server starts. The long compilation waiting times occur when application metadata is populated in the SQL Server buffer pool.



Service pack information
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

913089 How to obtain the latest service pack for SQL Server 2005

Prerequisites
There are no prerequisites for this hotfix.

Restart information
You do not have to restart the computer after you apply this hotfix.

Registry information
You do not have to change the registry.

Hotfix file information
This hotfix contains only those files that are required to correct the issues that this article lists. This hotfix may not contain all the files that you must have to fully update a product to the latest build.

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

SQL Server 2005 Itanium architecture version


STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was first corrected in Microsoft SQL Server 2005 Service Pack 1.



MORE INFORMATION
This hotfix exposes trace flag 840. When trace flag 840 is turned on, SQL Server can perform larger I/O extent reads to populate the buffer pool when SQL Server starts. The larger I/O extent reads populate the buffer pool faster. Additionally, the larger I/O extent reads improve the initial query compilation and the response time when SQL Server starts. For more information about how to turn on trace flag 840, see the &quot;Using the SQL Server service startup options&quot; topic in SQL Server 2005 Books Online.

Note SQL Server 2005 Enterprise Edition, SQL Server 2005 Developer Edition, and SQL Server 2005 Evaluation Edition can already perform 64-KB I/O extent reads during buffer pool ramp-up. Therefore, you do not have to apply this hotfix to SQL Server 2005 Enterprise Edition, to SQL Server 2005 Developer Edition, or to SQL Server 2005 Evaluation Edition.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbsql2005sp1fix kbsql2005engine kbprb kbhotfixserver kbsql2005presp1fix kbqfe kbpubtypekc KB912322

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.