Solved

FIELDTERMINATOR

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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.
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.

739 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