Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSIS Vs Linked Server with SQL Agent Jobs Expand / Collapse
Author
Message
Posted Friday, May 11, 2012 8:46 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 11:44 AM
Points: 56, Visits: 247
Dear Experts,

Need advice in planning.

There are tables which needs to be exported to / imported from databases on different SQL instances DAILY and also want to have exception handlers or notifications of the daily run and the status (especially on failure of perticular table). Please let me know whether to go with SSIS or create a linked server and schedule Job also let me know the advantages and disadvantages over both. At the max the below steps will be involved:

1. Drop the existing tables at destination
2. Create Tables at destination
3. Insert Data at destination.
Post #1298641
Posted Friday, May 11, 2012 8:59 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 1:24 PM
Points: 5,318, Visits: 9,760
I would nearly always advise the SSIS route. It's more flexible and it enables you to do transformations that you can't (easily) do with T-SQL. It's also easy to handle errors and send notifications.

Using a linked server is less secure since it increases the surface area of your server, giving another possible avenue of attack.

John
Post #1298660
Posted Friday, May 11, 2012 9:02 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Friday, August 22, 2014 9:02 AM
Points: 689, Visits: 2,779
Personally I would go with SSIS as it was created for this kind of work.

There are many advantages of using SSIS to name but a few:

- Good error handling possibilities
- Bulk Inserts
- Visibility of what is happening in the pipeline
- Configurations

I'm sure there are more that will be added to the thread!

A disadvantage of using SSIS is the appalling error messages and it can at times be a pig to work with (my personal opinion not a statement of fact!)

Question why steps 1 & 2 what are your reasons for dropping and recreating the tables already in place?

Andy


==========================================================================================================================
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe
Post #1298663
Posted Friday, May 11, 2012 9:23 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 11:44 AM
Points: 56, Visits: 247
Good Question. This is required as there will be changes made to the columns at Source (adding or dropping columns). If we go with SSIS, we need to do mapping too.

Please advice that SSIS is the better choice.
Post #1298683
Posted Friday, May 11, 2012 9:56 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Friday, August 22, 2014 9:02 AM
Points: 689, Visits: 2,779
pawana.paul (5/11/2012)
Good Question. This is required as there will be changes made to the columns at Source (adding or dropping columns). If we go with SSIS, we need to do mapping too.

Please advice that SSIS is the better choice.


Now that is a much more complicated process...

I have had colleagues who have done this in the past successfully using SSIS but not
without some pretty complicated dynamic SQL and a combination of #Temp tables, agent jobs.

Without this SSIS will pick up that column names have changed or no longer exist and fail as a consiquence without you manually amending the ETL's

Sorry that may not be much help but as I've personally never had to overcome this challenge (yet) its all I can offer.

Andy


==========================================================================================================================
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe
Post #1298723
Posted Friday, May 11, 2012 10:09 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 11:44 AM
Points: 56, Visits: 247
Thanks Andy. Appreciate your help.

Others,

Request you to advice if you have any inputs on this.

Post #1298734
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse