Gruff
12-18-2007, 12:13 PM
DB Questions again. *SIGH*
I have a ProvideX Database that contains new product information.
Each entry has a unique job number (Two fields actually)
I am building a new MFG SQL Server Database that needs to import new jobs from the ProvideX Database on demand.
What is the fastest method to determine the jobs that have not been absorbed in the SQL database?
Ideally I would write a flag of some kind to the ProvideX database that I would use in my initial Query to get only those jobs that are new.
The bad news is I cannot write to the ProvideX DB. It restricts access to read only.
Currently I am reading a list of job numbers out of the ProvideX, Storing them in an array, doing the same with my SQL database, then loop through the list removing those that exist in the SQL database.
Once I have my list I do a heavy query (Lots of fields) for the new jobs and push them into my SQL DB.
I'd like to keep the time I tie up the DBs to a minimum.
Am I on the right track or is there a better method?
~T
I have a ProvideX Database that contains new product information.
Each entry has a unique job number (Two fields actually)
I am building a new MFG SQL Server Database that needs to import new jobs from the ProvideX Database on demand.
What is the fastest method to determine the jobs that have not been absorbed in the SQL database?
Ideally I would write a flag of some kind to the ProvideX database that I would use in my initial Query to get only those jobs that are new.
The bad news is I cannot write to the ProvideX DB. It restricts access to read only.
Currently I am reading a list of job numbers out of the ProvideX, Storing them in an array, doing the same with my SQL database, then loop through the list removing those that exist in the SQL database.
Once I have my list I do a heavy query (Lots of fields) for the new jobs and push them into my SQL DB.
I'd like to keep the time I tie up the DBs to a minimum.
Am I on the right track or is there a better method?
~T