Solved

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

Posted on 2012-03-22
4
203 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
T-SQL Using IN with a subquery 3 12
Sql query 34 22
MSSQL Frequency of Years From Days Field 2 16
Syntax using Declare 3 16
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how the fundamental information of how to create a table.

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now