Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
scabral7
Yak Posting Veteran
57 Posts |
Posted - 2013-02-01 : 13:22:06
|
Hi,I have an excel file with following data:Agent State Exposure Insured NameRogers Inc MA 100,000 John SmithSAN Group RI 200,000 Jim MorrisonSAN Group RI 100,000 Jimi Hendrix123 Agency MA 300,000 Mickey MouseRogers Inc MA 50,000 Mike GreenwellI want to be able to read the file and create new excel files for each Agent listed.So for Example, the above file would create 3 separate files since there are 3 different Agents listed. Each Agent file would contain the same information from the original file. The name of the file would be somethign like AgentName.xlsSo the SAN group file would have this:Agent State Exposure Insured NameRogers Inc MA 100,000 John SmithSAN Group RI 200,000 Jim MorrisonSAN Group RI 100,000 Jimi HendrixIs there a way to accomplish this in SSIS?thanksScott |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-02-02 : 01:43:21
|
yep.Make use of data flow task it will have an excel source to start with and this reads data from source exceluse conditional transform next and add three outputs based on agentname (Agent="Rogers",Agent="SAN",Agent="123 Agency")Take each of the outputs and join to excel destination and give name as agentname------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|