【发布时间】:2011-07-25 10:43:46
【问题描述】:
我正在尝试在我们的 sql 数据库中的一个表中进行批量上传。当我们在不同的服务器上拥有数据库时,此查询运行良好,但现在在新服务器上出现错误。 这就是我所拥有的: sql批量导入查询:
BULK
INSERT NewProducts
FROM 'c:\newproducts.csv'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
GO
我得到的错误是:
Msg 4832, Level 16, State 1, Line 1
Bulk load: An unexpected end of file was encountered in the data file.
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
提前感谢您的帮助。
【问题讨论】:
-
新旧服务器的版本/软件是什么?
标签: sql-server bulkinsert