INF: How to BCP in Datetime Values in Nondefault FormatLast reviewed: April 3, 1997Article ID: Q89080 |
The information in this article applies to:
SUMMARYMicrosoft SQL Server users often need to import ASCII files into SQL Server that contain datetime values in formats other than the default formats. Since the Bulk Copy Program (BCP) recognizes only the default date format, which is either "mm-dd-yy[yy]" or "mmm dd yyyy", you must do the following to import such files:
MORE INFORMATIONIn SQL Server version 4.2, although you can change the date format by using the SET DATEFORMAT command, that change will be effective only for the duration of the current session. Since BCP is a separate session by itself, there is no way to change the date format for the BCP session. Therefore, you can not use the SET DATEFORMAT command to force BCP to accept a date format other than the default, which is in the "mdy" order in U.S. English.
|
Additional query words: 4.20 dblib Windows NT
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |