Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
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

808 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