![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I'm in a quandry as to what to do? I have a remote ORACLE production database and a local SQL reporting and Data entry database. I don't have permissions to write Store Procedures on the ORACLE server so I need to copy the data and put it on the SQL server. I have come up with two main thoughts. --1. I could write a VB Module to compare the Results table with the DATA table and then update the field if it is different. --2. I could just copy over the existing DATA table with a daily DTS package. This is my dilemma. If I choose the first, then I have to break the DATA table up into two parts, which destroys some of the trigger. If I choose the second, then I'm not sure if VB is the correct way or how long this could take. If anyone has any ideas, please direct me as to how to best handle this. Thank you, Brandon H. Campbell |
#3
| |||
| |||
|
|
Allan, I was thinking that step 2 would be the best since I have a field called lastupdated on the ORACLE tables. My question is setting up a store procedure to run the comparison. I know how I would do this using VB, but would I use cursors to fetch a row, and how do I iterate through each field in that row and compare the Results table with the Data table. I've seen several comments by people trying to avoid Cursors, is there another way to do this without using Cursors? Any direction would be greatly appreciated. Brandon H. Campbell Database Administrator CDC/NIOSH *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
![]() |
| Thread Tools | |
| Display Modes | |
| |