RE: SELECT Permissions on Schemas



Todd C (ToddC@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
It just seems messy when dealing with ODBC connections because those
views exist in the Master Database (to which the user is NOT listed as a
login), yet he sees all 250+ system objects listed when he goes to link
a table in a user database.

So your real problem is that the objects in the master database deluge
what the user sees in Access? Why Access lists everything in sight I don't
know.

I believe that master has the guest user enabled, and you cannot turn that
off.

"You want to access table X? Then I need to know which columns there
are".

The better approach might have been: "OK, you want access to Table X, then
the system and NOT the USER will go query the meta table to determine
structure.

Unfortunately that does not fly. It is the API that asks this question
and send down the metadata query. And the API can only work with the
user's authentication.



--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: SQL2005 Mgmt Studio does not hide system objects
    ... system objects in object explorer". ... Studio is restarted. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: Master database corrupt.
    ... SQL Server isn't working at all. ... Or a "recreate master database" command? ... If you have a backup of the master database, ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.server)
  • Re: Restore Master DB
    ... It's all in Books Online under "master database, restoring" in the index. ... Looking for a SQL Server replication book? ...
    (microsoft.public.sqlserver.server)
  • Re: how to if needed recover from mistake
    ... reflected also in the master database, ... the situation that I would need to restore a master database. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Permission to view system tables in master database
    ... Dave writes: ... tries to select records from one of the system tables in a SQL Server ... 2005 master database. ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)