Re: Newly created SQL login can't read any databases - can I give it permissions to read all databases

Tech-Archive recommends: Fix windows errors by optimizing your registry



If you move to windows authentication and create proper groups in AD,
you can give that group permissions once. New users added to that
group then will inherit permissions automatically.

My 2 cents!

On Jul 9, 1:04 pm, franklinhu <frankli...@xxxxxxxxx> wrote:
I have observed that if you create a new SQL login user and only grant
it the public role, that this user cannot do selects on any database
on the server - which makes it pretty useless. To get around this, I
can assign the sysadmin role to this user and then I immediately have
read/write access to all the databases on the server. But this is a
big security problem in that I only want my SQL user to have SELECT
access to all databases.

I would like to be able to grant my SQL login user, the same wide
database access as the sysadmin, but with only limited rights on the
databases.

Based on what I have been able to read in the documentation, it is
impossible to do this without having to modify every database that I
want my new SQL login to access. The GRANT command is only able to
change permissions for a single database, not all the databases in the
system. So it seems that I have to create a user in each of my
databases, grant it the appropriate roles and then associate it with
my SQL login user.

I need to create new databases all the time which need to be accessed
by the SQL login user, so I would have to keep doing this grant/
asociate action every time I need to create a database.

Is there an easier way than this? This seems to basically force you to
run as sysadmin if you want to access all databases without having to
tweak every single one of them to be accessable by a non-sysadmin
account.

fhusqllogin

.



Relevant Pages

  • Newly created SQL login cant read any databases - can I give it permissions to read all database
    ... I have observed that if you create a new SQL login user and only grant ... can assign the sysadmin role to this user and then I immediately have ... read/write access to all the databases on the server. ...
    (microsoft.public.sqlserver.server)
  • RE: missing system.mdw file
    ... permissions to create the file, ... >The registry key is not missing. ... Running the SCAN program from the Windows ... >>| I cannot create any new databases in Access 2002 on ...
    (microsoft.public.access.setupconfig)
  • Re: one SQL DB getting info from another - user setup?
    ... It appears from your narrative that the Main and DB1 databases ... EXEC sp_helpdb 'Main' ... SQL 2000 SP3 and is turned off by default. ... > In the permissions for Main, USER1 and USER2 are listed, but have NO ...
    (microsoft.public.sqlserver.security)
  • Re: MDB remembers old MDW
    ... The workgroup file is used for a session of Access - any number of databases ... The mdw defines the usernames/passwords and group memberships. ... permissions are stored in the mdb file with the objects. ...
    (microsoft.public.access.security)
  • Re: Application roles Please Help!
    ... May I point out that with the guest account, any server login will have ... access to any db even without permissions. ... > Other databases can be accessed only via the guest user security context ...
    (microsoft.public.sqlserver.security)