Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am writing an SSIS package that generates CSV file.. i dont have any problem in exporting the data but when i open the CSV file using excel, one column data in SQL is showing up as two in excel...for example i have column called Name the value in database as Ravi,Kiran.... it should be in one column even if i open using excel but that is not happing... Can some one help me out of this issue? i am really in big trouble..
Posted
Updated 15-Apr-13 6:52am
v2
Comments
ZurdoDev 15-Apr-13 11:39am    
Sounds like you have a comma in your data.
[no name] 15-Apr-13 12:53pm    
If the data has a comma embedded in it you need to wrap the data in double quotes.
Maciej Los 15-Apr-13 16:07pm    
Example data, please...

Hi..

Once check in your query,

// fields terminated by ',' lines terminated by '\n' //

i thing!
 
Share this answer
 
We can overcome this issue if we can wrap the text in double quotes.. In order to wrap the text in double quotes... we have to specify the Text quqlifier as(")(Just Double quotes in text qualifer field)..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900