Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Bulk insert of text file Help PLEASE!

$
0
0

Hello,

I am trying to insert the following data into a sql server table.

11470012 31020141100AMFI2              TENTATIVE APPOINTMENT SET FOR 03/17/2014 AT 10:00 AM
11470012 31720141000AMFI7              INTERVIEW COMPLETED.

I am using the following code.

Bulk Insert dbo.Totalnt

From 'c:\totalnt.txt'

with (rowterminator = '\n');

I get the following error.

Msg 4866, Level 16, State 7, Line 4

The bulk load failed. The column is too long in the data file for row 1, column 1. Verify that the field terminator and row terminator are specified correctly.

Msg 7399, Level 16, State 1, Line 4

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 4

Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".

Please help,

M. Wilson


M. Wilson


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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