The information in this article applies to:
SUMMARY
Microsoft 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: dblib Windows NT
Keywords : kbtool |
Last Reviewed: March 12, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |