|
Posted by Erland Sommarskog on 12/28/05 01:28
(ckirby@mindspring.com) writes:
> The file is actually stored on the server, so the path shouldn't be a
> problem.
>
> However, I'm getting an error returned from this Bulk Insert command:
> BULK INSERT dbo.tmpPaTimeClock
> FROM '\\Csi\c\Tmp\PER_HRS1.CSV' WITH (DATAFILETYPE = 'char', FIRSTROW
>=1)
>
>
> Server: Msg 4866, Level 17, State 66, Line 1
> Bulk Insert fails. Column is too long in the data file for row 1,
> column 1. Make sure the field terminator and row terminator are
> specified correctly.
How about reading the error message? :-) It says: "Make sure the field
terminator and row terminator are specified correctly.". Did you do
that? No, the default field terminator is tab.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
[Back to original message]
|