Solved

FIELDTERMINATOR

Posted on 2004-08-20
6
1,246 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
Comment Utility
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
Comment Utility
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
Comment Utility
You are right, I type the table's name wrong. It works now. Thanks
0
 
LVL 5

Expert Comment

by:amit1978
Comment Utility
U have to update registry to use semicolan insted of ','

If still having a problem please let us know
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

762 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

9 Experts available now in Live!

Get 1:1 Help Now