Microsoft KB Archive/101242

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 08:17, 20 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



BUG: Default on TEXT Datatypes Ignored by BCP

Last reviewed: May 5, 1997
Article ID: Q101242

The information in this article applies to:

  • Microsoft SQL Server version 4.2 for OS/2

BUG# 8902 (4.2)

SYMPTOMS

When loading an ASCII terminated file with the Bulk Copy Program (BCP) version 4.2, defaults on TEXT datatypes are ignored. Instead, NULL is inserted into the text column instead of the default that is bound to that column and/or datatype for that column.

WORKAROUND

The following two options avoid the problem:

  • modify the ASCII data file to include the default value where values are not given.
  • after loading the data, issue an UPDATE statement to change the NULL to the default value.

STATUS

Microsoft has confirmed this to be a problem in SQL Server versions 4.2 and 4.2a for OS/2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



Additional query words: utility data type

Keywords : kbbug4.20 kbbug4.20a kbtool SSrvBCP
Version : 4.2 4.2a
Platform : OS/2


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 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.