Hi,
We have been running a UNION queriy on our single db using an ADODB.recordset like this...
OpenDataConnect ion()
set rsID = CreateObject("A DODB.recordset" )
searchphrase = " SELECT t.*
" FROM table1 t "
" UNION "
" SELECT t.*
" FROM table2 t "
" ORDER BY Name "
rsID.open searchphrase, oConn
CloseDataConnec tion()
However table1 and table2 have grown so large they need to be placed in their own dbs, so now we will have 2 dbs but still want to run this query.
So presumambly i now open 2 connections
Also, i will need to qualify the db name in front of the table in the searchPhrase
BUT, how can a refer to the 2 open connection when i open the recordset ie. here
rsID.open searchphrase, oConn
as it only takes a single parameter.
Any help would be great, thanks in advance.
We have been running a UNION queriy on our single db using an ADODB.recordset like this...
OpenDataConnect ion()
set rsID = CreateObject("A DODB.recordset" )
searchphrase = " SELECT t.*
" FROM table1 t "
" UNION "
" SELECT t.*
" FROM table2 t "
" ORDER BY Name "
rsID.open searchphrase, oConn
CloseDataConnec tion()
However table1 and table2 have grown so large they need to be placed in their own dbs, so now we will have 2 dbs but still want to run this query.
So presumambly i now open 2 connections
Also, i will need to qualify the db name in front of the table in the searchPhrase
BUT, how can a refer to the 2 open connection when i open the recordset ie. here
rsID.open searchphrase, oConn
as it only takes a single parameter.
Any help would be great, thanks in advance.
Comment