Microsoft KB Archive/275503

= FIX: BCP Out Fails with Exception Error if You Use a Format File to Change Order of Columns =

Article ID: 275503

Article Last Modified on 3/14/2006

-

APPLIES TO


 * Microsoft SQL Server 7.0 Standard Edition

-



This article was previously published under Q275503



BUG #: 57401 (SQLBUG_70)



SYMPTOMS
If you use Bcp.exe to export a table to a flat file, the process may fail with an exception error if you use a format file to change the order of the columns during the export. The exception error occurs within the Bcp.exe file and the following error message appears:

The instruction at &quot;memory_address&quot; referenced memory at &quot;memory_address&quot;.

The memory could not be &quot;written&quot;.

The output file is created but no rows are exported.



WORKAROUND
Use a view to change the order of the columns to export. Then, use the view when you perform the bulk copy program and have the format file match the order of the columns in the view.



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

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

For more information, contact your primary support provider.

Additional query words: mdac bcp exception access violation

Keywords: kbbug kbfix kbqfe kbhotfixserver KB275503

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.