Re: No users/groups can login to SQL Server unless part of sysadmin
- From: Ekrem Önsoy <ekrem@xxxxxxxxxxxx>
- Date: Fri, 30 Jan 2009 21:34:28 +0200
To make your Domain Users be able to connect to your SQL Server database, you need to create a Login for your Domain Users Domain Group and then you need to map it to the related database with datareader and datawriter role memberships.
- Open up SSMS
- Go to Security node and then to Logins
- Right click on Logins node and then click New Login
- On the New Login window click Search to find Domain Users group (tip: Groups should be selected from Object Types, otherwise Domain Users group will not be found)
- Then select the default database for this Login below on the New Login window.
- Go to User Mapping pane from the left list on New Login window and select appropriate database(s) from "Users mapped to this login" list and make selected the database from the same list then choose "db_datareader" and "db_datawriter" from the roles from the below list.
- Click OK to create the Login for Domain Users group and user(s) for this Domain Group in the selected databases.
--
Ekrem Önsoy
<spiyush12@xxxxxxxxx> wrote in message news:19cb6454-d1b3-4ec9-b745-d5057a9c63ae@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jan 29, 10:25 am, "Richard Mueller [MVP]" <rlmueller-
nos...@xxxxxxxxxxxxxxxxxxxx> wrote:
<spiyus...@xxxxxxxxx> wrote in message
news:335de5d9-48d0-46b3-8bd3-e7b2a13a1d2d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> We have SQL server 2005. We have mixed mode authentication.. We have
> created groups in Active Directory. I created a login for the group
> and mode is Windows authentication.
> When I create ODBC connection is does not let me select any database.
> However if I specify the group as part of sysadmin then I can connect
> to the server/database/tables...
> I am new ot SQL Server.. Any help would be appreciated..
To use Windows Authentication, assign a database role to the AD group. No
need to use SQL logins. All members of the AD group will get the permissions
assigned to the database role. I create my own role in the database and
assign the permissions needed. See Books On Line for details.
--
Richard Mueller
MVP Directory Services
Hilltop Lab -http://www.rlmueller.net
--
I went to the database--->Security--->Roles--->database Roles ---
db_accessadmin and added my self... I removed the sysadmin fromServer level security for my ad group..
It does not let me in or any other user in...
Help!!!
.
- Follow-Ups:
- References:
- No users/groups can login to SQL Server unless part of sysadmin
- From: spiyush12
- Re: No users/groups can login to SQL Server unless part of sysadmin
- From: Richard Mueller [MVP]
- Re: No users/groups can login to SQL Server unless part of sysadmin
- From: spiyush12
- No users/groups can login to SQL Server unless part of sysadmin
- Prev by Date: Re: No users/groups can login to SQL Server unless part of sysadmin
- Next by Date: Re: No users/groups can login to SQL Server unless part of sysadmin
- Previous by thread: Re: No users/groups can login to SQL Server unless part of sysadmin
- Next by thread: Re: No users/groups can login to SQL Server unless part of sysadmin
- Index(es):
Relevant Pages
|