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

This article was previously published under Q275503
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 57401 (SQLBUG_70)
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 "memory_address" referenced memory at "memory_address".
The memory could not be "written".
The output file is created but no rows are exported.
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.
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.
mdac bcp exception access violation

Article ID: 275503 - Last Review: 10/21/2013 02:16:20 - Revision: 2.1

Microsoft SQL Server 7.0 Standard Edition

  • kbnosurvey kbarchive kbhotfixserver kbqfe kbbug kbfix KB275503