I have encountered a similar issue, however I found that it was not due to TextQualifier not working, but issues such as
1. Rows with Extra Columns
2. Rows with Too Many Text Delimiters
My approach to identify the errors was to stage the raw data into a table where I could search for possible errors
- Create an SSIS Package & Load All Data in Row into a Single Column table definition is below
- In SSIS Package add Row Number ( so you can reference the actual line number in flat file to fix issues http://support.microsoft.com/kb/908460 )
- Run SQL Agains the rawdata table and count the number of text qualifiers and by subtracting comparing length of string with delimiters replaced.
- Find any rows where number for text qualifiers or delimiters is not consistent and search for errors
create table rawdata(
my_row_number int not null primary key clustered
,rawdata varchar(8000)
,issuspect bit default(0)
)
select
my_row_number
,rawdata
,len(rawdata)
,len(replace(rawdata,'"','')) as len_without_textqualifiers
,len(replace(rawdata,',','')) as len_without_delimiter
from rawdata