Solved

SSIS Integration Services, pull from different SQL Server, insert/update nightly on custom table

Posted on 2012-03-22
4
207 Views
Last Modified: 2013-03-22
I am new to integration services, and would like to setup a nightly task that references a view on a different SQL server on my network. I want to insert/update information into a custom student table that would store account numbers from another SQL box. I am confused on the control flow and data flow parts of this task.

I created a control flow of: Data Flow Task and then went into the properties of it. From the data properties, I created a OLE DB Source and another OLE DB Source, but what am confused on is my inner join. I am trying to map to the Copos Server, but since it is on a different server, I am getting errors on adding the linked server when I try and click mappings. Do I have to add a linked Server when the Source server is under the Connection Manager?

Should I get going about this another way? Should I be using the Data Flow Transformations of Merge or a Merge Join?
Screen-Shot-2012-03-22-at-11.54..png
0
Comment
Question by:Emi975
  • 3
4 Comments
 
LVL 17

Expert Comment

by:Barry Cunney
ID: 37753368
so forgetting about SSIS for a minute - Are you saying you need to a SELECT from a table on Server1 and then INNER to a second table on Server2?
0
 

Author Comment

by:Emi975
ID: 37753397
I want to read a view from Server 1 and then do a inner join on the update statement for Server 2. The view does not have the same personid to match the personid on Server2. Thats why I have to do a inner join.
0
 
LVL 17

Expert Comment

by:Barry Cunney
ID: 37753477
So you need to do something in SSIS that mimics the below SQL pseudo code?

UPDATE std_1
SET std_1.AccountNumber = std_2.AccountNumber
FROM Server1.Student std_1
JOIN Server2.Student std_2
ON std_2.StudentID = std_1.StudentID
0
 
LVL 17

Accepted Solution

by:
Barry Cunney earned 500 total points
ID: 37753580
You may be able to user a Merge Join as outlined in this article
http://www.mssqltips.com/sqlservertip/1322/merge-multiple-data-sources-with-sql-server-integration-services/

Change the sources to be OLEDB sources as opposed to Flat File sources
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to share SSIS Package? 6 37
SQL Server - Set Field Values ito Zero Based on Related Table 4 26
Tsql query 6 22
transaction in asp.net, sql server 6 33
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question