I have this update statement -
<cfquery name="updateqry" datasource="thisone">
update dbOne.tableA a
inner join dbTwo.tableB b on a.docid=b.docid
set a.download_dt = now(), a.document_status = "DOWNLOADED", a.rec_mod_dt = now()
where b.school_id = <cfqueryparam value="#project.school_id#">
and b.project_id = <cfqueryparam value="#arguments.project_id#">
and date(b.doc_add_dt) >= <cfqueryparam value="#arguments.begin_dt#">
and date(b.doc_add_dt) <= <cfqueryparam value="#arguments.end_dt#">
and a.download_dt is null and a.document_status <> "DOWNLOADED"
</cfquery>
dbOne and dbTwo are on different servers now. How do I separate this update statement into multiple statements in order to get the info I need from each separate server's tables? I've never seen this update inner join syntax before, I'm really stumped.