Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Comma Delimited Conversion Expand / Collapse
Author
Message
Posted Monday, July 7, 2008 10:13 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, January 22, 2009 8:34 AM
Points: 14, Visits: 17
All,

I am having an issue with a data conversion from a table to a flat file. I have an address filed that has commas in it. It is splitting the field when I do not want it to. How do I change the datasource so that this one item is not , delimited. Do I need to scrub all commas out of all my data? In 200 dts this is not an issue for me. I have tried everything from altering the data source to trying to change the source in the Bids. It is killing me. I know there has to be a way. I do not want to scrub the data.

Phil
Post #529448
Posted Monday, July 7, 2008 2:20 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, June 26, 2014 6:11 AM
Points: 1,330, Visits: 815
Shot in the dark: In your flat file destination definition, have you specified the text qualifier (usually ' or ")?
Post #529631
Posted Monday, July 7, 2008 2:24 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, January 22, 2009 8:34 AM
Points: 14, Visits: 17
I have specified a , but it won't let me specify anything else. I believe that the OLAP connection is overriding. But there is the source and then the Destination. They all seem to have a say. Is there a level of command here?
Post #529632
Posted Monday, July 7, 2008 2:31 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, June 26, 2014 6:11 AM
Points: 1,330, Visits: 815
The delimiter (,) and text qualifier (") are two different things in the flat file destination definition. The flat file destination definition should have the final say in what it looks like in the destination file.
Post #529636
Posted Monday, July 7, 2008 2:36 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, January 22, 2009 8:34 AM
Points: 14, Visits: 17
It is the delimiter that I am having trouble with. For example and address that has a comma in it. Before I could force DTS to see say 40 spaces and drop the item in there comma or no comma. In SSIS I cannot seem to do that. I have tried Fixed width but that is not working either. I have gone to replace(field,',',' ') for name and address.
Post #529640
Posted Monday, July 7, 2008 2:46 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, June 26, 2014 6:11 AM
Points: 1,330, Visits: 815
I haven't had any luck with fixed column files (as it sounds like you are trying to do). I was able to get all of my vendors at my previous place of employment to move to comma delimited. For the one that would not move, they didn't get updates more than once per month since I had to use Access to export the data.

I just found a process here with my new employer that does create an export but uses an "export table" generated from a stored procedure to build each record. Then, the SSIS package simply exports a single column without text qualifiers or delimiters.
Post #529647
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse