Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bulk Insert

Status
Not open for further replies.

sparkme

Programmer
Oct 3, 2003
30
US
I was trying to Insert into a table from a text file


bulk insert dbo.Client from 'C:\Client.text'
with (
datafiletype = 'native' )

I'am getting the following error:


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.
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'STREAM' reported an error. The provider did not give any information about the error.
The statement has been terminated.

Can some one help me,Thanks in advance.


 
Hi James,
Its in Tab delimted format.I created the file from Query analyzer by saving the result of the query into a file called client.txt with tab delimited option.

 
Now its Working,

When i run only this statement
bulk insert dbo.Client from 'C:\Client.text'

Anyhow thanks James



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top