SQL Server 2012 querying Access 2007 data using OPENROWSET error

后端 未结 4 1511
一个人的身影
一个人的身影 2020-12-03 19:13

I would like to query data in Management Studio from a Microsoft Access 2007 database located on the same machine as my SQL Server 2012 instance. I do NOT want to use a link

4条回答
  •  醉梦人生
    2020-12-03 20:08

    Assuming you have the 'Northwind' sample installed (and in folder mentioned below), will the following run?

    SELECT CustomerID, CompanyName
       FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
          'C:\Program Files\Microsoft Office\OFFICE11\SAMPLES\Northwind.mdb';
          'admin';'',Customers);
    GO
    

    Unfortunately I have not reinstalled SQL Server since my last reimage

提交回复
热议问题