Distribuited query

  • I have to get data (via openrowset) from an Access database that is located on another one server (and another domain).

    I've tried to map the Access partition on my Sql Server but i have no privileges to run the query...

    Is there someone that have an idea?

    Thanks

    leledimilano


    leledimilano

  • SQL must have permissions to the access db and be able to access it.

    Create a DSN (e.g. TEST) on the server to point to the access database.

    Use

    select * from OPENROWSET('MSDASQL','TEST';'admin';'','select * from Table1')

    or without a DSN use

    select * from OPENROWSET('MSDASQL','Driver={Microsoft Access Driver (*.mdb)};Dbq=c:\somepath\mydb.mdb;Uid=admin;Pwd=','select * from Table1')

    Edited by - davidburrows on 05/14/2003 03:40:36 AM

    Far away is close at hand in the images of elsewhere.
    Anon.

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

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