ODBC readonly (viewonly) linked tables....

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hitesh Joshi

    ODBC readonly (viewonly) linked tables....

    Hi,

    I have a prod database (main bread & bread DB) and have a small access
    database that sales team is using... I created a login inside SQL 2000
    and gave db_read permission and SELECT permissions... and public.
    Role of public is EXEC store procs and view some systables...
    I linked those tables that I gave permissions through ODBC link into
    access db with the user that I created inside SQL as readonly user...
    but to my surprise when I ran a insert query from access on SQL
    tables... I was able to update and insert data... if my ODBC link is
    only for readonly.. why was I able to unpdate & insert data into SQL
    table?
    I don't want to give write/update/insert permissions for SQL tables to
    sales team... or anyone outside SQL 2000 server DB.
    Is there any easy way to create viewonly users inside SQL?
    I created users like this: security -logins -new login...
    select none serverrole.. db access (bread & butter DB)

    Thank you,
    hj

    ******
    Pardon my English...

  • Erland Sommarskog

    #2
    Re: ODBC readonly (viewonly) linked tables....

    Hitesh Joshi (hitesh287@gmai l.com) writes:
    I have a prod database (main bread & bread DB) and have a small access
    database that sales team is using... I created a login inside SQL 2000
    and gave db_read permission and SELECT permissions... and public.
    Role of public is EXEC store procs and view some systables...
    I linked those tables that I gave permissions through ODBC link into
    access db with the user that I created inside SQL as readonly user...
    but to my surprise when I ran a insert query from access on SQL
    tables... I was able to update and insert data... if my ODBC link is
    only for readonly.. why was I able to unpdate & insert data into SQL
    table?
    Exactly how does the connection information for the ODBC link look like?
    (Minus any password of course).

    Exactly how did you set up this user as a readonly user?




    --
    Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

    Books Online for SQL Server 2005 at

    Books Online for SQL Server 2000 at

    Comment

    Working...