What is the syntax quering data from multiple Access databases?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the syntax quering data from multiple Access databases? Any
suggestions or examples?
 
ionoloso said:
What is the syntax quering data from multiple Access databases? Any
suggestions or examples?


Use the IN "path" phrase in the FROM clause.
 
Marshall said:
Use the IN "path" phrase in the FROM clause.

I find the 'brackets' syntax easier to read e.g.

SELECT key_col, data_col FROM
[MS Access;Database=C:\db1.mdb;].Test
UNION
SELECT key_col, data_col FROM
[MS Access;Database=C:\db2.mdb;].Test
UNION
SELECT key_col, data_col FROM
[MS Access;Database=C:\db2.mdb;].Test
ORDER BY 1;

Jamie.

--
 
onedaywhen said:
I find the 'brackets' syntax easier to read e.g.

SELECT key_col, data_col FROM
[MS Access;Database=C:\db1.mdb;].Test


It's your call of course, but, for mdb files, I prefer

SELECT key_col, data_col
FROM Test IN "C:\db1.mdb"

I do agree with you when the foreign db requires a full
connect string though.
 
Back
Top