Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

Text File Import

$
0
0

I am trying to import a large text file (over 2gb, over 2 million records) that has a single data field of 100 characters in each record with only a LF record terminator into a table defined with one column vchar(100) bulk insert.

 I define the field terminator as "/n" and the record terminator as "/r" since it won't let me use the same terminator for both.

 I import immediately errors off with an error on column 1 of row 1 stating that the data exceeds the column size.


Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>