我想在我们的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)".
感谢提前任何帮助。
旧服务器和新服务器上的版本/软件是什么? – roberttdev 2011-03-29 16:23:58
相同,SQL服务器2008 – Laziale 2011-03-29 16:24:48