June 20, 2008 at 2:41 pm
I am using , seperated file to load the data.
Data contain comma inside "".
while inserting comma iside quotes are also seperted and insert as a seperate column.
123,"12,car st,pune,india",600 290,IND
How to ignore the comma inside ","
Thanks
June 20, 2008 at 3:48 pm
I am not sure what tool you are using, so I won't be specific.
There should be an option in your tool to set a "Text Qualifier" and you will want to set that to ".
HTH
June 20, 2008 at 10:11 pm
If it's BCP or Bulk Insert or maybe even the Bulk Insert task of SSIS, you may need a format file to do this...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 21, 2008 at 7:27 am
Thanks..
I am using BULK INSERT in that i had specified ROW TERMINATOR & FIELD TERMINATOR only.
How to specify a TextQualifier?
I had used format file also.
June 21, 2008 at 7:57 am
sharma (6/21/2008)
Thanks..I am using BULK INSERT in that i had specified ROW TERMINATOR & FIELD TERMINATOR only.
How to specify a TextQualifier?
I had used format file also.
To the best of my knowledge, you can't... you need to use a BCP Format File along with the Bulk Insert. It's not hard to make... look it up in BOL.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 11, 2008 at 12:25 am
I am also facing the same problem...Pls help
August 11, 2008 at 5:58 pm
Like I said... Books Online... lookup BCP Format file. I can't help if you don't even know what I'm talking about. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply