DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 926292 - Last Review: October 8, 2011 - Revision: 6.0

Hotfix Download Available
View and request hotfix downloads
 

SQL Server 2008

Microsoft distributes Microsoft SQL Server 2008 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 2008 fix release.

SQL Server 2005

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.
For more information about the master list of builds that were released after SQL was released, click the following article number to view the article in the Microsoft Knowledge Base:
957826  (http://support.microsoft.com/kb/957826/ ) Where you can find more information about the SQL Server 2008 builds that were released after SQL Server 2008 and the SQL Server 2005 builds that were released after SQL Server 2005 Service Pack 2

On This Page

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

SYMPTOMS

You have a view in a database in SQL Server 2005 or SQL Server 2008. In the definition of the view, the SELECT statement meets the following requirements:
  • The SELECT statement uses the TOP (100) PERCENT expression.
  • The SELECT statement uses the ORDER BY clause.
When you query through the view, the result is returned in random order.

However, this behavior is different in Microsoft SQL Server 2000. In SQL Server 2000, the result is returned in the order that is specified in the ORDER BY clause.

SQL Server 2008

The fix for this issue was first released in Cumulative Update 1. For more information about how to obtain this cumulative update package for SQL Server 2008, click the following article number to view the article in the Microsoft Knowledge Base:
956717  (http://support.microsoft.com/kb/956717/ ) Cumulative update package 1 for SQL Server 2008
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
956909  (http://support.microsoft.com/kb/956909/ ) The SQL Server 2008 builds that were released after SQL Server 2008 was released

SQL Server 2005

Two versions of this hotfix exist. One version is designed to be applied to the release version of SQL Server 2005. The other version is designed to be applied to SQL Server 2005 Service Pack 2 (SP2). If you are running the release version of SQL Server 2005, apply the hotfix that is described in this article (build 1554). If you are running SQL Server 2005 SP2, apply cumulative update package 2 for SQL Server 2005 SP2 (build 3175). If you are running SQL Server 2005 Service Pack 1 (SP1), install SQL Server 2005 SP2, and then apply cumulative update package 2 for SQL Server 2005 SP2 (build 3175). Cumulative update package 2 for SQL Server 2005 SP2 (build 3175) is described in Microsoft Knowledge Base article 936305. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
936305  (http://support.microsoft.com/kb/936305/ ) Cumulative update package 2 for SQL Server 2005 Service Pack 2 is available

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have installed the release version of SQL Server 2005 to apply this hotfix.

Restart information

You must restart the SQL Server service after you apply this hotfix.

Registry information

You do not have to change the registry after you apply this hotfix.

Actions after you apply this hotfix

This hotfix introduces trace flag 168. After you apply this hotfix, you must enable trace flag 168. For information about how to enable a trace flag in SQL Server 2005, see the "Remark" section of the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/ms188396.aspx (http://msdn2.microsoft.com/en-us/library/ms188396.aspx)
Additionally, you must change the compatibility level of the database that contains the view to 80.

To change the compatibility level, follow these steps:
  1. Open SQL Server Management Studio, and then connect to the instance of SQL Server 2005.
  2. Right-click the database that contains the view, and then click Properties.
  3. In the Select a page pane, click Options.
  4. In the Compatibility level list, select SQL Server 2000 (80).
Note Trace flag 168 must be set before the database is migrated to SQL Server 2005. If trace flag 168 is set after the database is migrated, the query result will remain unsorted.

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 item in Control Panel.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Logread.exe2005.90.1554.0397,08804-Oct-200616:06x86
Microsoft.sqlserver.replication.dll2005.90.1554.01,608,48004-Oct-200616:06x86
Microsoft.sqlserver.smo.dll9.0.1554.01,559,32804-Oct-200616:06x86
Microsoft.sqlserver.sqlenum.dll9.0.1554.0895,77604-Oct-200616:06x86
Msmdlocal.dll9.0.1554.015,626,52804-Oct-200616:08x86
Msmdredir.dll9.0.1554.03,929,88804-Oct-200616:08x86
Osql.exe2005.90.1554.051,48804-Oct-200616:04x86
Replrec.dll2005.90.1554.0781,08804-Oct-200616:06x86
Sqlaccess.dll2005.90.1554.0349,47204-Oct-200616:06x86
Sqldiag.exe2005.90.1554.0960,28804-Oct-200616:06x86
Sqlservr.exe2005.90.1554.028,791,64004-Oct-200616:08x86

STATUS

This behavior is by design. This behavior in SQL Server 2005 will remain in the future releases of SQL Server.

SQL Server 2008

For more information about what files are changed, and for information about any prerequisites to apply the cumulative update package that contains the hotfix that is described in this Microsoft Knowledge Base article, click the following article number to view the article in the Microsoft Knowledge Base:
956717  (http://support.microsoft.com/kb/956717/LN/ ) Cumulative update package 1 for SQL Server 2008

SQL Server 2005

If you apply this hotfix to SQL Server 2005 before you migrate an application from SQL Server 2000 to SQL Server 2005, this hotfix will make the application work with SQL Server 2005. For example, you expect to obtain the data in a specific sorted order. To do this, you must use the ORDER BY clause in the SELECT statement that you use to query through the view. After you apply this hotfix and migrate the application, you will obtain a sorted query result.

However, this hotfix is only a temporary resolution. After you migrate the application, you must update the application to work correctly with the new behavior in SQL Server 2005.

After you update the application, you can disable trace flag 168 and change the compatibility level of the database back to 90.

REFERENCES

For more information about the list of builds that are available after the release of SQL Server 2008, click the following article number to view the article in the Microsoft Knowledge Base:
956909  (http://support.microsoft.com/kb/956909/ ) The SQL Server 2008 builds that were released after SQL Server 2008 was released
For more information about the Incremental Servicing Model for SQL Server, click the following article number to view the article in the Microsoft Knowledge Base:
935897  (http://support.microsoft.com/kb/935897/ ) An Incremental Servicing Model is available from the SQL Server team to deliver hotfixes for reported problems
For more information about the naming schema for SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:
822499  (http://support.microsoft.com/kb/822499/ ) New naming schema for Microsoft SQL Server software update packages
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://support.microsoft.com/kb/824684/ ) Description of the standard terminology that is used to describe Microsoft software updates
For more information about the compatibility level of a database in SQL Server 2005, visit the following MSDN Web site:
http://msdn2.microsoft.com/en-us/library/ms178653.aspx (http://msdn2.microsoft.com/en-us/library/ms178653.aspx)
For more information about how to configure server startup options in SQL Server 2005, visit the following MSDN Web site:
http://msdn2.microsoft.com/en-us/library/ms345416.aspx (http://msdn2.microsoft.com/en-us/library/ms345416.aspx)
For more information about how to use the SQL Server service startup options, visit the following MSDN Web site:
http://msdn2.microsoft.com/en-us/library/ms190737.aspx (http://msdn2.microsoft.com/en-us/library/ms190737.aspx)

APPLIES TO
  • Microsoft SQL Server 2008 Enterprise
  • Microsoft SQL Server 2008 Developer
  • Microsoft SQL Server 2008 Standard
  • Microsoft SQL Server 2008 Workgroup
  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Workgroup Edition
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Express Edition
Keywords: 
kbautohotfix kbHotfixServer kbfix kbexpertiseadvanced kbqfe KB926292
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support