Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bulk insert cmd includes Double quotes in character strings
Message
From
04/04/2003 05:03:18
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Title:
Bulk insert cmd includes Double quotes in character strings
Miscellaneous
Thread ID:
00773913
Message ID:
00773913
Views:
83
Hi,

I am impotring data from a txt files into an sql database using bulk insert command. Character fields are enclosed in "(double Quotes).
After Importing The Data i see that the double quotes are also included in the fields.

How Can i avoid this without using a format file?

Here is an example of my bulk insert command :

DECLARE @cPATH VARCHAR(200)
SET DATEFORMAT dmy
SET @cPATH= '"C:\Imdbcy\DBIMDB\output\Chrvalues.txt"'
EXEC ('BULK INSERT IMDB..ChrValues FROM '+@cPATH+' WITH (CODEPAGE=''RAW'',DATAFILETYPE=''CHAR'', FIELDTERMINATOR = '','', ROWTERMINATOR =''\n'',KEEPIDENTITY)')


Tnx
Anthi
Next
Reply
Map
View

Click here to load this message in the networking platform