Microsoft Access OLE DB

From database24
Revision as of 14:42, 26 August 2010 by Dec (talk | contribs) (Created page with '== General == It is possible to access some resources without writing any line of code. All you need is to write a query which makes use of ISAM OLEDB. For further reading: * [h...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

General

It is possible to access some resources without writing any line of code. All you need is to write a query which makes use of ISAM OLEDB.

For further reading:

Microsoft Access

SELECT *
  FROM tblTable 
    IN 'c:\data.mdb'

Microsoft Excel

Worksheet

SELECT *
  FROM [Worksheet$] 
    IN 'c:\data.xls'[EXCEL 8.0;];

Named Range

SELECT *
  FROM [NamedRange] 
    IN 'c:\data.xls'[EXCEL 8.0;];

Reference

SELECT *
  FROM [Worksheet$A1:B2] 
    IN 'c:\data.xls'[EXCEL 8.0;];

Optional Parameters

  • HDR = yes|no
  • IMEX = 0|1

Text file

SELECT *
  FROM data.csv 
    IN 'c:\'[TEXT;];

Optional Parameters

  • HDR = yes|no