這裏是我的SQL批量加載一個CSV文件導入到SQL Server 2008中,但它的返回:批量插入在SQL Server不工作2008
0 row(s) affected.
代碼:
USE energyDB
GO
BULK INSERT energydata
FROM 'c:\temp\24544_MSSQL_out.csv'
WITH
(
FIRSTROW = 2,
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
GO
CSV文件看起來像這個(頂行被忽略)
24544,"1970-01-01 10:00:00","8056060 kWh"
24544,"2012-12-04 00:15:00",0.176
24544,"2012-12-04 00:30:00",0.163
24544,"2012-12-04 00:45:00",0.016
什麼是'EnergyData',你插入的表結構? –