SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Move table to different Destination


Move table to different Destination

Author
Message
Honny
Honny
SSC Journeyman
SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)

Group: General Forum Members
Points: 82 Visits: 107
Hi

I have x(Source) table in one server and Y(Destination) table in different server and i have a(destination),b(destination),c(destination) tables in different servers.


but x,a,b,c,y are of same structure...

1. Based on city COLUMN i have to move x data to a,b,c and y destination table at a time with out using multiple OLEDB destination transformation.

That is dynamically passing data to different destination with out oledb destination



Can you please help me on this i am new to ssis ...
Nevyn
Nevyn
Hall of Fame
Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)Hall of Fame (3.6K reputation)

Group: General Forum Members
Points: 3580 Visits: 3149
Is there a reason you can't use multiple OLE db destinations? That would likely be the best way ... get the data from your source, do a conditional split on city and map each condition to a seperate ole eb destination with a connection to the appropriate server.

If you really don't want that, you could probably put your data flow in a for loop container, and put an expression in your ole db destination that changes the connection used (or connection string if you only want to define one connection too) based on your iteration of the loop.

Upside is it would be easy to add more city/server destinations in the future. Downside is you query the source multiple times instead of getting all the data and splitting it.
Honny
Honny
SSC Journeyman
SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)SSC Journeyman (82 reputation)

Group: General Forum Members
Points: 82 Visits: 107
Thank you
I understand but can you please share me with example its my request...
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