Import Data from CSV file
i import data csv file.
my database have primary key. pk1, pk2, data.
my csv sample data looked below if open text file:
"data 1", "data 2", "data 3"
"data 1", "data 2 ", "data 3"
when run import task, prompt me duplicate primary key because take data 2 , without spacing same data.
i had set text qualified = "
is there setting make different of data 2?
thank you!
my database have primary key. pk1, pk2, data.
my csv sample data looked below if open text file:
"data 1", "data 2", "data 3"
"data 1", "data 2 ", "data 3"
when run import task, prompt me duplicate primary key because take data 2 , without spacing same data.
i had set text qualified = "
is there setting make different of data 2?
thank you!
hello calvin,
dont set text qualifer,and data "",and use derived column companent.write below expression
replace([columnname],"\"","")
SQL Server > SQL Server Integration Services
Comments
Post a Comment