Get Mirosoft Access data

  • Is there any way of getting Mirosoft Access data in c:\order.mdb from SQL without import Access table?

    For example, I want to complete a store procedure to get data from one table in Access

    Select * from Order (table Order is in c:\order.mdb)

  • You can add and use Access as linked server but only if your Office installation is a 64bit as SQL Server is.

    EXEC sp_addlinkedserver

    @server = 'AccessTest'

    ,@provider = 'Microsoft.ACE.OLEDB.12.0'

    ,@datasrc = 'C:\Users\IgorMi\Desktop\Database11.mdb'

    ,@srvproduct='Access'

    GO

    USE [master]

    GO

    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 1

    GO

    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 1

    GO

    Igor Micev,My blog: www.igormicev.com

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply