Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help on using DTS global variables to select rows from Oracle table!

Status
Not open for further replies.

wondemh

Programmer
Jul 30, 2001
3
US
Hi folks,

I am trying to do an incremental update on my tables in SQL Server. I am trying to do this by pulling rows from an Oracle table that have an activity date that is more recent than most recent date in the SQL Server table. I am doing this using a DTS Package. In the package I have an Execute SQL task that pulls the latest date from my SQL Server table and puts it in a global variable. Then I use the global variable in a Transform Data taks and say:

select * from Oracle_table where activity_date > ?

But DTS doesn't seem to be able to access the global variable when it is used to transfer data from Oracle to SQL Server. I would greatly appreciate any help!!!

Thanks

Henok
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top