
我的表结构:runningjob(runningjobnumeric(18,0)notnull,insertimedatetimenotnull);BULKINSERT语句为:BULKINSERTrunningjobFROM'G:\data\job1.txt'WITH(FIELDTERMINATOR=',');job1....我的表结构:
runningjob(runningjob numeric(18,0) not null,insertime datetime not null);
BULK INSERT语句为:

BULK INSERT runningjob FROM 'G:\data\job1.txt'
WITH
(

FIELDTERMINATOR =','
);
job1.txt中的数据:

46,201405060910
执行BULK INSERT时报错如下:
消息 4864,级别 16bulk insert 指定列,状态 1bulk insert 指定列,第 1 行

第 1 行、第 2 列(insertime)出现大容量加载数据转换错误(
)。
看到有人在SQL Server 2000中,出现类似问题,需要把datetime修改为datetimestamp即可。
但在SQL Server 2008 中,没有类似的数据类别。应该怎样容纳上面的日期型的数据呢?
我修改为datetime2(7),能插入数据,但是查询出来是如下:
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-140954-1.html
把辽宁号航母派过去
你回学校跪个键盘我看哈