Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

load TableC from TableB based on value of TableA in SSDT/SSIS

$
0
0

I have 3 tables-

          [code]
          --Server 1(SQLSERVER)
          CREATE TABLE TableA (GROUP_ID INT
                              ,STATUS VARCHAR(10))
          --Server 2(Oracle)
          CREATE TABLE TableB (GROUP_ID INT
                              ,NAME VARCHAR(10)
                              ,STATE VARCHAR(50)
                              ,COMPANY VARCHAR(50))
         --Server 1
          CREATE TABLE TableC (GROUP_ID INT
                              ,NAME VARCHAR(10)
                              ,STATE VARCHAR(50)
                              ,COMPANY VARCHAR(50))
         [/code]
Sample data
         [code]
          INSERT INTO TableA (1, 'READY'),(2,'NOT READY'),(3,'READY'),(4,'NOT READY')
          INSERT INTO TableB (1, Mike, 'NY', 'aaa'), (1, Rick, 'OK','bbb'), (2, Smith, 'TX','ccc'), (3, Nancy, 'MN','bbb'), (4, Roger, 'CA','aaa')
          [/code]
I am trying to build a SSDT(SSIS 2012) package to load the data in TableC from TableB for only those GROUP_ID which has STATUS= 'READY' in TableA and change the STATUS ='LOADED'.

I need to accomplish this by using a project level parameter or variable for TableA->GROUP_ID and STATUS because i will be doing this for about 60 tables and those values might change.

I must build a SSIS package, it is a requirement.
using linked server is not preferred. unless its impossible to achieve through SSIS.

Any help would be appreciated.



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>