Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Comma Delimited Conversion


Comma Delimited Conversion

Author
Message
Phil Larkin-403636
Phil Larkin-403636
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
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
jim.powers
jim.powers
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1397 Visits: 852
Shot in the dark: In your flat file destination definition, have you specified the text qualifier (usually ' or ")?
Phil Larkin-403636
Phil Larkin-403636
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
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?
jim.powers
jim.powers
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1397 Visits: 852
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.
Phil Larkin-403636
Phil Larkin-403636
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
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.
jim.powers
jim.powers
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1397 Visits: 852
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search