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

Excel Import Question for multivalues in each cell

$
0
0


We are loading the excel data to SQL Server.

One of the stopping issue is the following

Input

Practice Manager, E-mail and Direct line
 
Donna West dmwest@mednet.ucla.edu        310.319.3844
Donna West dmwest@mednet.ucla.edu        310.319.3844

The Output format should be the following

Practice Manager Email Direct Line
Donna West  dmwest@mednet.ucla.edu    310.319.3844
Donna West  dmwest@mednet.ucla.edu    310.319.3844


I am trying to use Derived Column initially with required expression using Replace function to add ',' to end of each line with in cell.

Then using Substring and charindex wanted to split the values based on ',' delimiter.

So my question is that what is the expression I should write to have  COMMA to be added to end of each line.

Apart from my above way are there any other ways we can do to gets the required solution.

That would be a great relief from me if I get a solution..Thanks in advance ...:) :)

P.S - Also attached the format in image for clear understaing...



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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