The information in this article applies to:
SYMPTOMSVersion 4.2 of the bulk copy program (BCP) drops both seconds and milliseconds when bulk copying DATETIME or SMALLDATETIME data out of SQL Server in character mode. CAUSE
When DATETIME or SMALLDATETIME information is extracted from SQL
Server, the date is converted in the default date format:
MMM DD YYY HH:MM[AM/PM] BCP uses the default date format. When BCP is executed in character mode, both DATETIME and SMALLDATETIME data are converted to the default date format. Thus, seconds and milliseconds are not displayed. WORKAROUND
If it is critical to BCP the date datatype information out with both
the seconds and milliseconds, one of the following methods can be
used:
Additional query words: data type dblib
|
|
Last Reviewed: March 16, 1999 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |