BUG: Skipped Cols in Format File Can Cause Unhandled AV in BCP

Last reviewed: May 2, 1997
Article ID: Q139544

The information in this article applies to:
  • Microsoft SQL Server, version 6.0
BUG# NT: 11873 (6.00)

SYMPTOMS

Using BCP to copy data out from Microsoft SQL Server can result in a unhandled exception for BCP.

CAUSE

The unhandled exception can occur when lines that specify columns that you want to skip when using BCP to extract the data out is not present in the format file. This only happens when using BCP to copy data out; the same format file can be used successfully to copy data in to SQL Server.

WORKAROUND

Use the method discussed in the "Administrator's Companion" manual in the section on BCP called 'Using a Format File to Selectively Copy Data' to skip a table column by specifying 0 prefix length, 0 length, and no terminator. Another workaround would be to create a view with the necessary columns, then BCP the data out from the view.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: sql6 format av dr. watson
Keywords : kbbug6.00 kbprg SSrvBCP
Version : 6.0
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.