Create a SSIS Package - To Copy data from Oracle to SQL Server

后端 未结 2 1847
一生所求
一生所求 2021-02-09 20:02

I want to write a SSIS Package for copying data from oracle to MS Sql server. and also the condition is, What are the data has to be moved from oracle to SQL will be known by se

相关标签:
2条回答
  • 2021-02-09 20:30

    You should use Lookup to join the common column( same data type) of SQL server and Oracle and retrieve the values from Oracle which does not have a matching record in SQL server.

    Design Design

    1.Using SSIS 2005

    1. Drag a OleDB Source and point to your Oracle Database and select the table .
    2. Drag a lookup and select the SQL Server connection and point to its table .
    3. In columns tab join the common column and select the columns in the right hand side which you need to retrieve . Lookup
    4. Click on Configure Error output and select redirect row for the join column . Lookup
    5. Drag a Oledb Command and connect it to the error output from the lookup. 6.Write an insert statement in Oledb Command Oledb Oledb

    2.If you are using SSIS 2008 then no need to configure the Error Output in lookup .Just drag the no match output from Lookup to SQL Server destination.

    0 讨论(0)
  • 2021-02-09 20:46

    I suggest this implementation.

    I have used praveen's solution, but sometimes it may not be the best. Specially as the number if records on the destination grows. Also, it doesn't deal with "updates"

    0 讨论(0)
提交回复
热议问题