Solved

FIELDTERMINATOR

Posted on 2004-08-20
6
1,248 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:
ScottPletcher 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
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 …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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.

920 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now