?
Solved

FIELDTERMINATOR

Posted on 2004-08-20
6
Medium Priority
?
1,269 Views
Last Modified: 2008-02-01
I have this code

BULK INSERT tmpStList FROM 'c:\TxtFile2.txt' WITH (FIELDTERMINATOR = ',')

It works fine. But when I change the ',' to ';' it give an error message. My text file is separated with semicolon (;)
0
Comment
Question by:CochiseCounty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 15

Expert Comment

by:jdlambert1
ID: 11856004
1. What's the error message?
2. Have you tried other field terminators, like a vertical bar '|'?
0
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 500 total points
ID: 11856006
You can use semi-colon, so there must be some other issue.

Verify the contents of the file match the table exactly.

And please post the specific error, that would help a lot.
0
 

Author Comment

by:CochiseCounty
ID: 11856040
You are right, I type the table's name wrong. It works now. Thanks
0
 
LVL 5

Expert Comment

by:amit1978
ID: 11857738
U have to update registry to use semicolan insted of ','

If still having a problem please let us know
0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question