Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access and openrowset

Status
Not open for further replies.

junkmail

Programmer
Jan 7, 2001
134
US
Can someone tell me why this does not work?

SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','C:\work\database1.accdb;','select * from [table1]')

this is a error I get.

Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".
 
Try this

This works for me:
SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'C:\work\dbname.mdb'; 'admin';'',TranHdrs)

This was on SQL 2005 and an oldish version of Access.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top