FIX: The bcp utility does not import DBCS data from a text file that is larger than 32 MB (883716)
The information in this article applies to:
- Microsoft Data Access Components 2.8, when used with:
- the operating system: Microsoft Windows XP
SYMPTOMSThe bulk copy program ( bcp) command prompt utility may not be able to import data from a text file when all the following conditions are true: - You run the bcp utility at the command prompt on a computer that has Microsoft Data Access Components (MDAC) 2.8 installed.
- The text file contains information in a language that uses the double-byte character set (DBCS), such as Japanese, Korean, or Chinese.
- The text file is larger than 32 megabytes (MB).
RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft Windows XP. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
322389 How to obtain the latest Windows XP service pack
To resolve this problem, you may also obtain the hotfix that is mentioned in the following Microsoft Knowledge Base article: 837311 FIX: You cannot import data from a text file that is greater than 32 MB by using the BCP utility
Note You can use this hotfix file to resolve this problem even if the problem occurs on a computer that is not running Microsoft Windows XP. WORKAROUNDTo work around this problem, use the BULK INSERT Transact-SQL statement to import data from a text file that is larger than 32 MB to a table. To do this, follow these steps: - Start SQL Query Analyzer.
- On the File menu, click New.
- Click Blank Query Window, and then click OK.
- Paste the following code in the query window:
USE BcpTestDB
go
BULK INSERT [BcpTestDB].[dbo].[BcpTestTable]
FROM '<Source Folder>\LargeFile.txt'
WITH
(
CODEPAGE=932,
FIELDTERMINATOR = '\t' , ROWTERMINATOR = '\n'
)
go Notes- <Source Folder> is a placeholder for the folder where the LargeFile.txt file is created.
- Code page 932 is a code page for the Japanese language.
- On the Query menu, click Execute to run the query. The data from the LargeFile.txt file is imported to the BcpTestTable table successfully.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.REFERENCES
For additional 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
For more information, visit the following Microsoft Developer Network (MSDN) Web sites:
Modification Type: | Major | Last Reviewed: | 8/25/2004 |
---|
Keywords: | kbDatabase kbfix kbLocalization kbImport kbcode kbSqlClient kbMDAC280sp1fix kbQFE KB883716 kbAudDeveloper |
---|
|