Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Попытка с помощью bcp переннести данные типа datetime - некорректно / 2 сообщений из 2, страница 1 из 1
23.07.2001, 12:20
    #32010116
mrlamerz
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Попытка с помощью bcp переннести данные типа datetime - некорректно
Данные выгружаются в формате год, месяц, день, час, минуты. Секунд - нет.... Как получить с секундами?
...
Рейтинг: 0 / 0
23.07.2001, 16:27
    #32010147
Fompro
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Попытка с помощью bcp переннести данные типа datetime - некорректно
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
Форумы / Microsoft SQL Server [игнор отключен] [закрыт для гостей] / Попытка с помощью bcp переннести данные типа datetime - некорректно / 2 сообщений из 2, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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