Re: SQL User permissions



ace95hockey (ace95hockey@xxxxxxxxxxxxxx) writes:
I am sorry about being unclear. I have not done this already. I am
trying to determine if I can setup a user that when they log into SQL
Server Management Studio that they only see their database and nothing
else. I have done as you have said below and gone to the database and
given this account dbo permissions for this database. They are not a
member of any of the builtin security roles and I have not created any
new ones. When I log in as this user using Management Studio they can
see all databases and permissions, etc. I only want them to be able to
see their database and only make changes to their database. I don't
know if that even can be done but that is my goal.

You can do this:

DENY VIEW ANY DATABASE TO someuser

Then the users will only be able to see master and tempdb, and any
database they are the owner of. I have not been able to find out whether
you can grant/deny VIEW DEFINITION of a single database. Say that someuser
has been granted access to the database db765, but is not the owner of
the database. When someuser logs in, db765 does not appear in Mgmt Studio.
Someuser can say "USE db765" in a query window and access the database
that way, but it can cause some confusion.

--
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: Backups have Shadow Copy Problems
    ... and restarted the server. ... suggested and changed the recovery model to simple on the one database called ... I understand the issue to be: the backup task failed ... You back up data from a volume that contains a Microsoft SQL Server ...
    (microsoft.public.windows.server.sbs)
  • Re: upsizing to sql 2005
    ... the word SERVER in it, ... You can access to the database by multiple means (Access, ... and how does it update the SQL database with the new records in Access? ... Query Name: Arcadia - ARC ...
    (microsoft.public.access.queries)
  • Re: Linked Tables in Access
    ... any use of SQL Passthru, Linked Tables or any other use of MDB / MDE ... server, or would I also need to convert *those* queries to passthrough ... I've been trying to understand why Access database files become corrupt. ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Trouble Getting VS.Net 2003 WalkThroughs MSDE Connection
    ... Config Tool of SQL Server? ... > link to download the PUBs database. ... >>> Setup and they directed me to install MSDE and they attached a ...
    (microsoft.public.sqlserver.msde)
  • Re: Leveling by ID vs. "Standard"
    ... of this trade called Project Management. ... a database for the "Project Tables," ... to write reports on data from the server database. ... product supporting queries created with SQL. ...
    (microsoft.public.project)