Quantcast
Channel: Answers for "Error: Cannot bulk load. Invalid number of columns in the format file"
Viewing all articles
Browse latest Browse all 4

Answer by Fatherjack

$
0
0
Depending on how many rows there are in the file and whether this is a recurring task, I would just import the whole thing into a dev table and then ship the necessary across. Why not use BCP to do this? The error is pretty self-explanatory, the code is seeing a difference in the column count. Is it something simple like the delimiter you have chosen being part of a column name in the data? If you import a sample set of data using BCP, can you create a fmt file from the table that would then let you import the whole set? You might see the difference in the FMT files then too...

Viewing all articles
Browse latest Browse all 4

Trending Articles