openrowset with readonly

  • Hi,

    i want to use openrowset to connect with readonly access to a mdb database.

    i have created a view like:

    SELECT *

    FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'MS Access;Database=\\ruta\base.mdb;UID=Admin;PWD=admin', 'SELECT * FROM tabla')

    AS derivedtbl_1

    that i've name as "empleados"

    But if i type "update empleados set campo1=1" it update field. how could i conect with openrowset but with only read.

    Many thanks

  • Connect with a user that has more restricted rights to the file.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

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

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