Laz*_*ale 8 sql-server bulkinsert
我想在我们的sql数据库中的一个表中进行批量上传.之前,当我们在不同的服务器上安装数据库时,此查询运行良好,但现在在新服务器上我收到错误.这就是我所拥有的:sql bulk import query:
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)".
在此先感谢您的帮助.
我以前遇到过这种情况,需要注意以下几点:
\n而不是\r\n如果您执行了所有这三项操作但仍然收到错误,请告诉我。
| 归档时间: | 
 | 
| 查看次数: | 8606 次 | 
| 最近记录: |