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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BULK INSERT syntax error!?

Status
Not open for further replies.

rao1soft

Programmer
Nov 7, 2002
17
US
Hi,

While using the following statement to do a load:

BULK INSERT mydb.dbo.mytable
from 'C:\data.txt'
with
(
fieldterminator = '|'
rowterminator = '\n'
)

I get an error "Line 6: Incorrect syntax near 'rowterminator'. Help appreciated.

--Rao.

 
I think you have missed a comma after field terminator

Try this
BULK INSERT mydb.dbo.mytable
from 'C:\data.txt'
with
(
fieldterminator = '|',
rowterminator = '\n'
)


Sunil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top