Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 exporting data into a csv file - cells get shifted

Author  Topic 

sachingovekar
Posting Yak Master

101 Posts

Posted - 2012-10-22 : 08:58:14
Hi,

I am trying to export data from sql server 2008 table into csv file using import\export wizard.

when i open the csv file, the cells are shifted.

The problem is my address column has "comma".

data is in this format:
name address city
rick 2nd, ringtownstreet,23 singapore

Regards,
Sachin

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-10-22 : 09:42:40
Have you specified the delimiter?

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-10-22 : 13:23:17
quote:
Originally posted by sachingovekar

Hi,

I am trying to export data from sql server 2008 table into csv file using import\export wizard.

when i open the csv file, the cells are shifted.

The problem is my address column has "comma".

data is in this format:
name address city
rick 2nd, ringtownstreet,23 singapore

Regards,
Sachin


why not use text qualifer like "" to enclose the data with comma within it

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2012-10-23 : 09:36:55
...or use a tab-delimiter...or semicolon or the vertical bar even ( | )...

- Lumbago
My blog-> http://thefirstsql.com
Go to Top of Page
   

- Advertisement -