Solved

FIELDTERMINATOR

Posted on 2004-08-20
6
1,250 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
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 125 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

831 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