Sorry if this is an easy question or I should know, but I don't really know where to start.
I'm trying to create a package that will be run regularly to transfer data from an Oracle database to SQL Server. In both databases, the records have an ID property. What I want to do is:
Find the Max ID in the SQL Server database
Use this to write a query to get everything from the Oracle database where the ID is bigger than that
Insert it into the SQL Server table.
I've used DTS for simple data dumps - all from an Oracle table to SQL Server, so I know how to set up connections and data transfers. I also won't have a problem writing the SQL.
My problem is: what mechanism do I use to pull this max ID from the SQL Server db and then use it in the query running on the Oracle db? So far I have looked at lookups, global variables and a couple of other things. I just need to know what I should be looking at - I can do the research and figure it all out from there. This must be quite a standard thing to do, and I'm guessing there is a 'right' way to do it?
Thanks for any help
I'm trying to create a package that will be run regularly to transfer data from an Oracle database to SQL Server. In both databases, the records have an ID property. What I want to do is:
Find the Max ID in the SQL Server database
Use this to write a query to get everything from the Oracle database where the ID is bigger than that
Insert it into the SQL Server table.
I've used DTS for simple data dumps - all from an Oracle table to SQL Server, so I know how to set up connections and data transfers. I also won't have a problem writing the SQL.
My problem is: what mechanism do I use to pull this max ID from the SQL Server db and then use it in the query running on the Oracle db? So far I have looked at lookups, global variables and a couple of other things. I just need to know what I should be looking at - I can do the research and figure it all out from there. This must be quite a standard thing to do, and I'm guessing there is a 'right' way to do it?
Thanks for any help