R
RTY
I have to update a remote database. I can't link to the tables because it
slows down my application to a crawl. So I just modified the SQL statements
to get to the remote database. The append was easy and the syntax works.
But, the Update statement doesn't. I need to use one table to update the
other. When I leave out the second table (tblOpportunityLocal) and all
references the statement will update the table correctly. How do I get the
SQL statement to accept both the remote table and local table references?
(and I can't use replication).
UPDATE tblOpportunityCollectionMaster in
'\\FILESHARES.CORP.XX.COM\Americas\Opportunity Collection Database\Master
Opportunity Collection Database V1.mdb', tblOpportunityLocal SET
tblOpportunityCollectionMaster.[Opportunity Name] =
tblOpportunityLocal.oppOpportunityName,
tblOpportunityCollectionMaster.Customer = "Test2",
tblOpportunityCollectionMaster.Project = "Test Project"
WHERE (((tblOpportunityCollectionMaster.[Work
Type])=tblOpportunityLocal.[oppWorkType]));
slows down my application to a crawl. So I just modified the SQL statements
to get to the remote database. The append was easy and the syntax works.
But, the Update statement doesn't. I need to use one table to update the
other. When I leave out the second table (tblOpportunityLocal) and all
references the statement will update the table correctly. How do I get the
SQL statement to accept both the remote table and local table references?
(and I can't use replication).
UPDATE tblOpportunityCollectionMaster in
'\\FILESHARES.CORP.XX.COM\Americas\Opportunity Collection Database\Master
Opportunity Collection Database V1.mdb', tblOpportunityLocal SET
tblOpportunityCollectionMaster.[Opportunity Name] =
tblOpportunityLocal.oppOpportunityName,
tblOpportunityCollectionMaster.Customer = "Test2",
tblOpportunityCollectionMaster.Project = "Test Project"
WHERE (((tblOpportunityCollectionMaster.[Work
Type])=tblOpportunityLocal.[oppWorkType]));