Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Multiple Delimiters in an Extract

$
0
0

Hi,

I am attempting to pull a extract from our server, SQL Server 2008 R2.  In a normal extract I would use SSIS to a delimited Text File, however this extract is looking for something a litte bit more complex.  It needs to have a delimiter at the end of a record(Line Feed), one after each field (Comma), and then one after each value in that field (Tab). 

An example of how this would look would be:

          ID, Address Line 1     Address Line 2     Address Line 3, City, State, Zip, Address Type, Phone Num 1     Phone Number 2   ...., Phone Number Type 1     Phone Number Type 2     ...\LF

For the multiple Address line that is a simple concatenation from the db, but the phone numbers are providing some issues.  Each ID could have multiple numbers, in our db as separate records.  For Example:

ID     Phone Number     Phone Number Type

12      555-555-1234      Home

12      555-555-1235      Cell

12 ....

Any ideas on how i would work through the issue of trying to make this work?

Any help would be much appreciated.

Thanks,

Matt


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>