October 17, 2017 at 6:04 pm
I have data something like below for one of the column.
ADDRESS
2248|("snake") ft NE, FTE 700
When I extract this record to csv using SSIS, My column is populating as below:
ADDRESS Some other column
2248|("snake") ft NE FTE 700
I've used something like this in my ole db source
Select '"'+[Address]+'"' from dbo.table
October 17, 2017 at 7:14 pm
wweraw25 - Tuesday, October 17, 2017 6:04 PMI have data something like below for one of the column.ADDRESS
2248|("snake") ft NE, FTE 700When I extract this record to csv using SSIS, My column is populating as below:
ADDRESS Some other column
2248|("snake") ft NE FTE 700I've used something like this in my ole db source
Select '"'+[Address]+'"' from dbo.table
I'm not really grasping what the question is here.
Ah... now I see it. I had to be in the edit mode of this post in order to see that the "FTE 700" part of the address ended up in another column. I also see that this is for SSIS, which I know nothing about and so I can't help here but, hopefully, my post will also act as a clarification and a "bump" for those that do know about SSIS.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 18, 2017 at 4:12 am
Are you using commas as your column delimiter?
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
October 18, 2017 at 6:58 am
Phil Parkin - Wednesday, October 18, 2017 4:12 AMAre you using commas as your column delimiter?
Yes I'm.
October 18, 2017 at 7:45 am
Are you viewing the extracted file in a text editor, or in Excel?
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
October 18, 2017 at 8:02 am
Phil Parkin - Wednesday, October 18, 2017 7:45 AMAre you viewing the extracted file in a text editor, or in Excel?
in excel since it includes some amount fields and have to do some aggregations stuff.
October 18, 2017 at 8:25 am
The simplest option if you can do it is to simply strip out the comma from that column in the select statement. Another option is to use a different delimiter you can try tab, excel will read that pretty easily, depending on who's consuming the report you can use something more extreme like an character you can't easily type(unfortunately excel only supports single character delimiters). You can also try using a text qualifier and see if that doesn't break your data.
October 18, 2017 at 9:28 am
wweraw25 - Wednesday, October 18, 2017 8:02 AMPhil Parkin - Wednesday, October 18, 2017 7:45 AMAre you viewing the extracted file in a text editor, or in Excel?in excel since it includes some amount fields and have to do some aggregations stuff.
So that explain why the comma has been interpreted as a column delimiter. If you viewed the data file in a text editor, the comma would be there.
ZZartin - Wednesday, October 18, 2017 8:25 AMThe simplest option if you can do it is to simply strip out the comma from that column in the select statement. Another option is to use a different delimiter you can try tab, excel will read that pretty easily, depending on who's consuming the report you can use something more extreme like an character you can't easily type(unfortunately excel only supports single character delimiters). You can also try using a text qualifier and see if that doesn't break your data.
Great answer.
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply