FIX: The BULK INSERT statement may not return any errors when you try to import data from a text file to a table by using the BULK INSERT statement in Microsoft SQL Server 2005 (919775)



The information in this article applies to:

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

Bug #: 819 (SQL Hotfix)

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 this 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

When you try to import data from a text file to a table by using the BULK INSERT statement in Microsoft SQL Server 2005, the BULK INSERT statement may not report any errors. This problem occurs even if the length of the numeric data in the text file is larger than the length of numeric column in the table. This problem occurs when the following conditions are true:
  • The data file uses the text file format, not the native file format.
  • The length of the data in the data file for the NUMERIC column is longer than the length of the definition for the NUMERIC column in the table.
Note In SQL Server 2000, this problem causes the 4867 error.

RESOLUTION

Hotfix information

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

You must have SQL Server 2005 Service Pack 1 (SP1) installed on the computer before you apply this hotfix. 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 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.
SQL Server 2005, x86 versions
File nameFile versionFile sizeDateTimePlatform
Autoadmin90.dll2005.90.2164.0899,36014-Jun-200620:07x86
Dta.exe9.0.2164.0117,53614-Jun-200619:53x86
Dts.dll2005.90.2164.01,099,04014-Jun-200619:58x86
Dtsinstall.exe9.0.2164.0494,36814-Jun-200619:57x86
Dtspipeline.dll2005.90.2164.0602,91214-Jun-200619:56x86
Dundaswebchart.dll9.0.2164.0752,41614-Jun-200620:02x86
Dundaswinchart.dll9.0.2164.0801,56814-Jun-200620:02x86
Microsoft.analysisservices.modeling.dll9.0.2164.0564,00014-Jun-200620:13x86
Microsoft.datatransformationservices.vsintegration.dll9.0.2164.0330,52814-Jun-200619:57x86
Microsoft.reportingservices.dataextensions.dll9.0.2164.0154,40014-Jun-200620:03x86
Microsoft.reportingservices.diagnostics.dll9.0.2164.0604,96014-Jun-200620:02x86
Microsoft.reportingservices.excelrendering.dll9.0.2164.0330,52814-Jun-200620:03x86
Microsoft.reportingservices.processingcore.dll9.0.2164.01,669,92014-Jun-200620:02x86
Microsoft.reportingservices.reportpreview.dll9.0.2164.0437,02414-Jun-200620:03x86
Microsoft.sqlserver.dtsruntimewrap.dll9.0.242.0166,68814-Jun-200619:47x86
Microsoft.sqlserver.maintenanceplantasks.dll9.0.2164.0256,80014-Jun-200619:51x86
Microsoft.sqlserver.maintenanceplantasksui.dll9.0.2164.0645,92014-Jun-200619:52x86
Microsoft.sqlserver.management.maintenanceplanwizard.dll9.0.2164.0555,80814-Jun-200619:52x86
Microsoft.sqlserver.management.ui.rsuserinterface.dll9.0.2164.01,223,45614-Jun-200620:04x86
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2164.075,55214-Jun-200620:05x86
Microsoft.sqlserver.olapenum.dll9.0.2164.052,00014-Jun-200619:48x86
Microsoft.sqlserver.sqlenum.dll9.0.2164.0908,06414-Jun-200619:48x86
Microsoft.visualstudio.vspsqlenum.dll9.0.2164.0875,29614-Jun-200619:48x86
Msadomdx.dll9.0.2164.0502,56014-Jun-200620:57x86
Msdtssrvr.exe9.0.2164.0203,55214-Jun-200619:59x86
Msgprox.dll2005.90.2164.0197,92014-Jun-200619:41x86
Msmdlocal.dll9.0.2164.015,661,85614-Jun-200620:56x86
Msmdsrv.exe9.0.2164.014,634,78414-Jun-200620:56x86
Msmgdsrv.dll9.0.2164.05,948,19214-Jun-200620:17x86
Nsservice.exe9.0.2164.019,23214-Jun-200619:32x86
Pfclnt90.dll2005.90.2164.01,186,08014-Jun-200619:54x86
Replprov.dll2005.90.2164.0547,61614-Jun-200619:42x86
Replrec.dll2005.90.2164.0782,11214-Jun-200619:38x86
Reportbuilder.exe9.0.2164.05,389,08814-Jun-200620:03x86
Reportingserviceslibrary.dll9.0.2164.01,030,94414-Jun-200620:03x86
Reportingservicesservice.exe9.0.2164.014,62414-Jun-200620:03x86
Reportingserviceswebserver.dll9.0.2164.01,325,85614-Jun-200620:03x86
Reportingserviceswebuserinterface.dll9.0.2164.01,239,84014-Jun-200620:03x86
Sqlaccess.dll2005.90.2164.0347,93614-Jun-200620:07x86
Sqlca.dll2005.90.2164.03,240,22414-Jun-200619:52x86
Sqlmanagerui.dll9.0.2164.06,077,21614-Jun-200619:52x86
Sqlncli.dll2005.90.2164.02,222,93614-Jun-200622:04x86
Sqlservr.exe2005.90.2164.028,950,87215-Jun-200602:42x86
Sqlsetup.exe2005.90.2164.02,088,73614-Jun-200619:52x86
Sqlspars.dll2005.90.2164.01,299,74414-Jun-200619:52x86
SQL Server 2005, x64 versions
File nameFile versionFile sizeDateTimePlatform
Dts.dll2005.90.2164.01,887,00814-Jun-200619:59x64
Dtspipeline.dll2005.90.2164.01,062,68814-Jun-200619:56x64
Dundaswebchart.dll9.0.2164.0752,41614-Jun-200619:35x86
Dundaswinchart.dll9.0.2164.0801,56814-Jun-200619:35x86
Microsoft.analysisservices.modeling.dll9.0.2164.0564,00014-Jun-200620:16x86
Microsoft.reportingservices.dataextensions.dll9.0.2164.0154,40014-Jun-200619:35x86
Microsoft.reportingservices.diagnostics.dll9.0.2164.0604,96014-Jun-200619:35x86
Microsoft.reportingservices.excelrendering.dll9.0.2164.0330,52814-Jun-200619:36x86
Microsoft.reportingservices.processingcore.dll9.0.2164.01,669,92014-Jun-200619:35x86
Microsoft.sqlserver.dtsruntimewrap.dll9.0.242.0166,68814-Jun-200619:44x64
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2164.091,42414-Jun-200620:25x64
Microsoft.sqlserver.olapenum.dll9.0.2164.052,00014-Jun-200619:54x86
Microsoft.sqlserver.sqlenum.dll9.0.2164.0875,29614-Jun-200619:54x86
Microsoft.visualstudio.vspsqlenum.dll9.0.2164.0875,29614-Jun-200619:54x86
Msdtssrvr.exe9.0.2164.0199,45614-Jun-200619:58x64
Msgprox.dll2005.90.2164.0259,36014-Jun-200619:45x64
Msmdlocal.dll9.0.2164.030,228,25615-Jun-200603:45x64
Msmdsrv.exe9.0.2164.029,548,83215-Jun-200603:45x64
Msmgdsrv.dll9.0.2164.08,931,10415-Jun-200602:33x64
Nsservice.exe9.0.2164.019,23214-Jun-200619:35x86
Replprov.dll2005.90.2164.0745,24814-Jun-200619:45x64
Replrec.dll2005.90.2164.01,008,41614-Jun-200619:41x64
Reportingserviceslibrary.dll9.0.2164.01,030,94414-Jun-200619:36x86
Reportingservicesservice.exe9.0.2164.014,62414-Jun-200619:36x86
Reportingserviceswebserver.dll9.0.2164.01,325,85614-Jun-200619:36x86
Reportingserviceswebuserinterface.dll9.0.2164.01,239,84014-Jun-200619:36x86
Sqlaccess.dll2005.90.2164.0355,10414-Jun-200620:25x86
Sqlca.dll2005.90.2164.04,317,98414-Jun-200620:41x64
Sqlncli.dll2005.90.2164.02,854,74414-Jun-200622:07x64
Sqlservr.exe2005.90.2164.039,251,23215-Jun-200601:20x64
Sqlsetup.exe2005.90.2164.03,083,04014-Jun-200620:41x64
Sqlspars.dll2005.90.2164.01,755,42414-Jun-200620:40x64
SQL Server 2005 Itanium architecture versions
File nameFile versionFile sizeDateTimePlatform
Dts.dll2005.90.2164.03,504,41615-Jun-200603:29IA-64
Dtspipeline.dll2005.90.2164.01,930,01615-Jun-200603:29IA-64
Dundaswebchart.dll9.0.2164.0752,41615-Jun-200603:29x86
Dundaswinchart.dll9.0.2164.0801,56815-Jun-200603:29x86
Microsoft.analysisservices.modeling.dll9.0.2164.0564,00015-Jun-200603:28x86
Microsoft.reportingservices.dataextensions.dll9.0.2164.0154,40015-Jun-200603:29x86
Microsoft.reportingservices.diagnostics.dll9.0.2164.0604,96015-Jun-200603:28x86
Microsoft.reportingservices.excelrendering.dll9.0.2164.0330,52815-Jun-200603:28x86
Microsoft.reportingservices.processingcore.dll9.0.2164.01,669,92015-Jun-200603:29x86
Microsoft.sqlserver.dtsruntimewrap.dll9.0.242.0166,68815-Jun-200603:29IA-64
Microsoft.sqlserver.mgdsqldumper.dll2005.90.2164.0163,10415-Jun-200603:29IA-64
Microsoft.sqlserver.olapenum.dll9.0.2164.052,00015-Jun-200603:28x86
Microsoft.sqlserver.sqlenum.dll9.0.2164.0875,29615-Jun-200603:29x86
Microsoft.visualstudio.vspsqlenum.dll9.0.2164.0875,29615-Jun-200603:29x86
Msdtssrvr.exe9.0.2164.0199,45615-Jun-200603:29IA-64
Msgprox.dll2005.90.2164.0542,49615-Jun-200603:28IA-64
Msmdlocal.dll9.0.2164.048,733,98415-Jun-200603:30IA-64
Msmdsrv.exe9.0.2164.047,685,40815-Jun-200603:30IA-64
Msmgdsrv.dll9.0.2164.012,870,43215-Jun-200603:30IA-64
Nsservice.exe9.0.2164.019,23215-Jun-200603:28x86
Replprov.dll2005.90.2164.01,617,18415-Jun-200603:29IA-64
Replrec.dll2005.90.2164.02,141,47215-Jun-200603:29IA-64
Reportingserviceslibrary.dll9.0.2164.01,030,94415-Jun-200603:29x86
Reportingservicesservice.exe9.0.2164.014,62415-Jun-200603:28x86
Reportingserviceswebserver.dll9.0.2164.01,325,85615-Jun-200603:29x86
Reportingserviceswebuserinterface.dll9.0.2164.01,239,84015-Jun-200603:29x86
Sqlaccess.dll2005.90.2164.0349,47215-Jun-200603:28x86
Sqlca.dll2005.90.2164.010,680,09615-Jun-200603:30IA-64
Sqlncli.dll2005.90.2164.05,396,31215-Jun-200603:29IA-64
Sqlservr.exe2005.90.2164.072,208,67215-Jun-200603:30IA-64
Sqlsetup.exe2005.90.2164.08,159,52015-Jun-200603:29IA-64
Sqlspars.dll2005.90.2164.04,816,67215-Jun-200603:29IA-64

WORKAROUND

To work around this problem, use one of the following methods:
  • Use an error file by specifying the ERRORFILE parameter of the BULK INSERT statement, and then check if the error file contains rows after the BULK INSERT statement is finished.
  • Set the MAXERROR parameter of the BULK INSERT statement to 0. The BULK INSERT statement ends when any errors occur.
  • Use the native file format instead of the text file format for the import file.
  • Use the Bcp.exe utility instead of the BULK INSERT statement.

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, 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:8/9/2006
Keywords:kbExpertiseAdvanced kbtshoot kbfix kbsql2005tsql kbQFE kbhotfixserver kbpubtypekc KB919775 kbAudDeveloper kbAudITPRO