![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi everyone, I'm trying to create a package to import data from Oracle to SQL Server 2000. For the records being imported, if they already exist in SQL, then UPDATE them, otherwise INSERT them. Can someone show me how this can be achieved please. I think I need to somehow dump the data from Oracle into a temporary SQL table before Update/Insert the actual tables and I can't seem to find a way of doing this. Any help is greatly appreciated. Many thanks, Calvin |
#3
| |||
| |||
|
|
There are a few ways you may like to attack this 1. Pump from Oracle to SQL Server and use the Data Driven Query Task (DDQ). This will allow you to determine what to do for each row and you then call the relevant statement. This is slow on large datasets 2. Use a Transform Data Task and use lookups. see #1 for downsides 3. Pump the necessary rows to a staging table from Oracle to SQL Server. Now issue the correct TSQL statements 4. For #3 there are a number of ways to get the rows from Oracle to SQL Server. Some say the drivers do not move data quick enough and have resorted to Export to Text File --> FTP --> BULK INSERT Hopefully that has given you a coulpe of ideas -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - You thought DTS was good. here we show you the new stuff. www.konesans.com - Consultancy from the people who know "Calvin KD" <CalvinKD (AT) discussions (DOT) microsoft.com> wrote in message news:81790FAC-F8B2-4777-A5D8-4DE8EF91D26C (AT) microsoft (DOT) com... Hi everyone, I'm trying to create a package to import data from Oracle to SQL Server 2000. For the records being imported, if they already exist in SQL, then UPDATE them, otherwise INSERT them. Can someone show me how this can be achieved please. I think I need to somehow dump the data from Oracle into a temporary SQL table before Update/Insert the actual tables and I can't seem to find a way of doing this. Any help is greatly appreciated. Many thanks, Calvin |
![]() |
| Thread Tools | |
| Display Modes | |
| |