Link to home
Start Free TrialLog in
Avatar of CochiseCounty
CochiseCountyFlag for United States of America

asked on

FIELDTERMINATOR

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 (;)
Avatar of jdlambert1
jdlambert1
Flag of United States of America image

1. What's the error message?
2. Have you tried other field terminators, like a vertical bar '|'?
ASKER CERTIFIED SOLUTION
Avatar of Scott Pletcher
Scott Pletcher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CochiseCounty

ASKER

You are right, I type the table's name wrong. It works now. Thanks
U have to update registry to use semicolan insted of ','

If still having a problem please let us know