Microsoft KB Archive/248454

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 16:14, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


FIX: Access Violation May Occur with BCP when Skipping a Column from Input Data File

Article ID: 248454

Article Last Modified on 3/14/2006



APPLIES TO

  • Microsoft SQL Server 7.0 Standard Edition



This article was previously published under Q248454

BUG #: 54557 (SQLBUG_70)

SYMPTOMS

An access violation may occur in the ODBC SQL Server driver if an application attempts to skip a column from the input data file using the bcp_colfmt function.

WORKAROUND

Extract out any column you need to skip from the input data file before bulk copying into the database.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

254561 INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0


For more information, contact your primary support provider.

MORE INFORMATION

As defined by the SQL 7.0 Books Online (BOL) the bcp_colfmt function allows a value of 0 for the idxServerCol parameter. SQL BOL states:

If this value is 0, bulk copy ignores the column in the data file.


The Bcp.exe utility that ships with SQL 7.0 uses the bcp_colfmt function when a user specifies that a column is to be skipped through a "format file". A user can set the server column number field in the format file (the sixth field) to 0 to specify that a column is to be skipped from the input data file. For more information about Bcp.exe, see SQL 7.0 Books Online.

Keywords: kbbug kbfix kbqfe kbhotfixserver KB248454