0

When I want to move data between two databases, what better choice.

A) Linked Servers

database local-> Linked Servers -> database azure

b) ETL - SSIS

database local create procedure xml -> integration service -> serialize xml to object c#> call wcf service async(queue-servicebus) -> persist database azure

  • Can you help me understand that workflow you have for ETL - SSIS? It seems un-SSISlike in what you describe – billinkc Sep 01 '15 at 19:57

2 Answers2

1

The following link addresses the pros and cons of Linked Servers vs. SSIS, with a recommendation that Linked Servers are best applied in moderation for queries.

https://dba.stackexchange.com/questions/5712/whats-the-difference-between-linked-server-solution-and-ssis-solution

It really boils down to how much data your are looking at moving from one database to another and for what purpose. That is, are you dealing with real-time data that must be acquired for an interface? It must be considered on a case-by-case basis. In my development environment, real-time is not required when pulling information from other sources into the database. In this case, SSIS works best and it provides a great log of the package applications throughout the day.

Additional observations:

  • SSIS is typically faster using BULK INSERTS and has better security benefits.
  • Linked Servers can create disaster recovery issues and can pose a problem when moving code between environments where one or more servers may not be available.

Lastly, I recommend that you speak with your DBA about applying Linked Servers. The DBA's I've worked with in the past have mostly been apprehensive with the responsibility of maintaining their application. This is one of those "could" vs. "should" issues in development where you must focus on the impact to the system as whole.

Community
  • 1
  • 1
user3662215
  • 526
  • 4
  • 12
0

When we use Linked Servers, there are also options to use BULK INSERT. In this case, SSIS won't be faster (in many cases it's even slower).

SSIS has some limitations in certain implementations: - cross domains issues when the domains are not trusted (when we call the packages, SSIS does not work with SQL authentication) - not easy to automate when the schema changes - if transformations are required, TSQL is generally faster. - SSIS with integrated CDC Data Sources works incorrectly and slow in certain scenarios. Confirmed by Microsoft, the issues are not yet fixed (SQL 2014/2016)

As mentioned above, it should be "must be considered on a case-by-case basis". There is no 'YES' or 'NO' here.

Anton
  • 2,846
  • 1
  • 10
  • 15