powered by simpleCommunicator - 2.0.59     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Попытка с помощью bcp переннести данные типа datetime - некорректно
2 сообщений из 2, страница 1 из 1
Попытка с помощью bcp переннести данные типа datetime - некорректно
    #32010116
mrlamerz
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Данные выгружаются в формате год, месяц, день, час, минуты. Секунд - нет.... Как получить с секундами?
...
Рейтинг: 0 / 0
Попытка с помощью bcp переннести данные типа datetime - некорректно
    #32010147
Fompro
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Copying Datetime or Smalldatetime Data
The bulk copy program (bcp) drops both seconds and milliseconds when bulk copying datetime or smalldatetime data out of SQL Server in character mode. The date is converted in the default date format:
MMM DD YYY HH:MM[AM/PM]
The bcp utility 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 .
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:
ћ Native mode bcp can be used if the data is to be transferred between various SQL Servers where the tables are identical in structure.
ћ Create a view, use the CONVERT() function on the date datatype to save it as a character string, then bulk copy out from the view.
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Попытка с помощью bcp переннести данные типа datetime - некорректно
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]