FIX: You notice additional random trailing character in values when you retrieve the values from a fixed-size character column or a fixed-size binary column of a table in SQL Server 2005 (918276)



The information in this article applies to:

  • Microsoft SQL Server 2005 Standard Edition
  • Microsoft SQL Server 2005 Developer Edition
  • Microsoft SQL Server 2005 Workgroup
  • Microsoft SQL Server 2005 Enterprise Edition
  • Microsoft SQL Server 2005 Standard X64 Edition
  • Microsoft SQL Server 2005 Enterprise X64 Edition
  • SQL Server 2005 Standard Edition for Itanium-based Systems
  • Microsoft SQL Server 2005 Enterprise Edition for Itanium Based Systems
  • Microsoft SQL Server 2005 Service Pack 1

Bug #: 733 (SQL Hotfix)
Bug #: 50000201 (SQL Hotfix)

Notice

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.
This article describes the following about this hotfix release:
  • The issues that are fixed by this hotfix package
  • The prerequisites for installing the hotfix package
  • Information about whether you must restart the computer after you install the hotfix package
  • Information about whether the hotfix package is replaced by any other hotfix package
  • Information about whether you must make any registry changes
  • The files that are contained in the hotfix package

SYMPTOMS

In SQL Server 2005, when you retrieve values from a fixed-size character column or a fixed-size binary column of a table, you notice additional random trailing characters in the values.

This problem occurs when all the following conditions are true:
  • The table is populated with the values in the connection context that has the ANSI_PADDING setting set to OFF.
  • The values with which the table is populated are returned by an ISNULL function from a SELECT statement. The SELECT statement has the following characteristics:
    • The SELECT statement has an INTO clause that creates the table. Additionally, the table is created in a connection context that has the ANSI_PADDING setting set to OFF.
    • The SELECT statement has an OUTER JOIN of TableB and TableC on their fixed-size binary columns or fixed-size character columns.
    • The fixed-size binary column or fixed-size character column values of either TableB or TableC that contain one or more NULL values are passed to the first parameter of the ISNULL function.
    • The table column that is passed to the first parameter of the ISNULL function is nonnullalble.
    • The second parameter of the ISNULL function is a constant value. The constant value has the smaller length than the fixed-size character column length or the fixed-size binary column length of the table in which you experience this problem.
Note TableB and TableC are used in this section to differentiate from the table in which you experience the problem.

RESOLUTION

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft SQL Server 2005 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

  • The original release version of SQL Server 2005-based hotfix requires the original release version of SQL Server 2005.
  • The SQL Server 2005 SP1-based hotfix requires SQL Server 2005 SP1.
For more information about how to obtain SQL Server 2005 Service Pack 1, 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

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 of 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.The original release version of SQL Server 2005-based hotfixSQL Server 2005 32-bit version
File nameFile versionFile sizeDateTimePlatform
Microsoft.sqlserver.replication.dll2005.90.1547.01,608,48019-May-200610:25x86
Microsoft.sqlserver.smo.dll9.0.1547.01,559,32819-May-200610:25x86
Microsoft.sqlserver.sqlenum.dll9.0.1547.0895,77619-May-200610:25x86
Msmdlocal.dll9.0.1547.015,626,52819-May-200610:26x86
Msmdredir.dll9.0.1547.03,929,88819-May-200610:26x86
Osql.exe2005.90.1547.051,48819-May-200610:25x86
Replrec.dll2005.90.1547.0781,08819-May-200610:25x86
Sqlaccess.dll2005.90.1547.0349,47219-May-200610:26x86
Sqldiag.exe2005.90.1547.0960,28819-May-200610:25x86
Sqlservr.exe2005.90.1547.028,791,12819-May-200610:26x86
SQL Server 2005 x64-based version
File nameFile versionFile sizeDateTimePlatform
Microsoft.sqlserver.replication.dll2005.90.1547.01,813,79219-May-200613:48x64
Microsoft.sqlserver.smo.dll9.0.1547.01,551,13619-May-200613:48x86
Microsoft.sqlserver.sqlenum.dll9.0.1547.0863,00819-May-200613:47x86
Msmdlocal.dll9.0.1547.015,626,52819-May-200610:26x86
Msmdredir.dll9.0.1547.03,929,88819-May-200610:26x86
Osql.exe2005.90.1547.083,74419-May-200613:47x64
Replrec.dll2005.90.1547.01,007,39219-May-200613:48x64
Sqlaccess.dll2005.90.1547.0356,64019-May-200613:47x86
Sqldiag.exe2005.90.1547.01,127,71219-May-200613:48x64
Sqlservr.exe2005.90.1547.039,483,16819-May-200613:47x64
SQL Server 2005 Itanium architecture version
File nameFile versionFile sizeDateTimePlatform
Microsoft.sqlserver.replication.dll2005.90.1547.02,521,88819-May-200613:55IA-64
Microsoft.sqlserver.smo.dll9.0.1547.01,551,13619-May-200613:54x86
Microsoft.sqlserver.sqlenum.dll9.0.1547.0863,00819-May-200613:54x86
Msmdlocal.dll9.0.1547.048,586,01619-May-200613:54IA-64
Msmdredir.dll9.0.1547.06,079,26419-May-200613:55IA-64
Osql.exe2005.90.1547.0123,16819-May-200613:54IA-64
Replrec.dll2005.90.1547.02,137,88819-May-200613:55IA-64
Sqlaccess.dll2005.90.1547.0351,52019-May-200613:54x86
Sqldiag.exe2005.90.1547.01,637,15219-May-200613:54IA-64
Sqlservr.exe2005.90.1547.072,367,90419-May-200613:54IA-64
SQL Server 2005 SP1-based hotfixSQL Server 2005 32-bit version
File nameFile versionFile sizeDateTimePlatform
Microsoft.sqlserver.sqlenum.dll9.0.2159.0908,06431-May-200610:45x86
Ms.ss.mgdsqldumper.dll2005.90.2159.075,55231-May-200610:45x86
Msgprox.dll2005.90.2159.0197,92031-May-200610:47x86
Replprov.dll2005.90.2159.0547,61631-May-200610:45x86
Replrec.dll2005.90.2159.0782,11231-May-200610:45x86
Msmdlocal.dll9.0.2159.015,661,85631-May-200610:46x86
Sqlaccess.dll2005.90.2159.0347,93631-May-200610:47x86
Sqlservr.exe2005.90.2159.028,939,09631-May-200610:46x86
SQL Server 2005 x64-based version
File nameFile versionFile sizeDateTimePlatform
Microsoft.sqlserver.sqlenum.dll9.0.2159.0875,29631-May-200611:37x86
Ms.ss.mgdsqldumper.dll2005.90.2159.091,42431-May-200610:45x64
Msgprox.dll2005.90.2159.0259,36031-May-200611:37x64
Msmdlocal.dll9.0.2159.015,661,85631-May-200610:46x86
Replprov.dll2005.90.2159.0745,24831-May-200611:37x64
Replrec.dll2005.90.2159.01,008,41631-May-200611:37x64
Sqlaccess.dll2005.90.2159.0355,10431-May-200611:37x86
Sqlservr.exe2005.90.2159.039,214,36831-May-200611:38x64
SQL Server 2005 Itanium architecture version
File nameFile versionFile sizeDateTimePlatform
Microsoft.sqlserver.sqlenum.dll9.0.2159.0875,29631-May-200612:57x86
Ms.ss.mgdsqldumper.dll2005.90.2159.0163,10431-May-200610:45IA-64
Msgprox.dll2005.90.2159.0542,49631-May-200612:57IA-64
Msmdlocal.dll9.0.2159.048,733,98431-May-200612:57IA-64
Replprov.dll2005.90.2159.01,617,18431-May-200612:57IA-64
Replrec.dll2005.90.2159.02,141,47231-May-200612:57IA-64
Sqlaccess.dll2005.90.2159.0349,47231-May-200612:58x86
Sqlservr.exe2005.90.2159.072,182,56031-May-200612:57IA-64

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about the naming schema for Microsoft SQL Server updates, click the following article number to view the article in the Microsoft Knowledge Base:

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 Description of the standard terminology that is used to describe Microsoft software updates


Modification Type:MinorLast Reviewed:7/26/2006
Keywords:kbHotfixServer kbfix kbExpertiseAdvanced kbQFE kbpubtypekc KB918276 kbAudITPRO kbAudDeveloper