Re: error adding Windows group security to database
From: Sue Hoegemeier (Sue_H_at_nomail.please)
Date: 05/21/04
- Previous message: Sue Hoegemeier: "Re: Can't start SQL 2000 after MS Update"
- In reply to: Andy: "error adding Windows group security to database"
- Next in thread: Andy: "Re: error adding Windows group security to database"
- Reply: Andy: "Re: error adding Windows group security to database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 21 May 2004 15:50:32 -0600
sp_adduser is for backwards compatibility only - try using
sp_grantdbaccess and sp_addrolemember. You can find more information
on these procedures in books online.
You can add a Windows group to the db_owner group using:
EXEC sp_addrolemember 'db_owner', 'YourDomain\YourGroup'
-Sue
On Fri, 21 May 2004 12:42:23 -0700, "Andy"
<anonymous@discussions.microsoft.com> wrote:
>I'm trying to add a Windows 2000 group to a database with
>db_owner rights using the following:
>
>-----
>sp_adduser 'MyDomain\sql-admins', 'sql-admins', 'db_owner'
>GO
>-----
>
>I'm encountering the following error:
>
>-----
>Server: Msg 15007, Level 16, State 1, Procedure
>sp_adduser, Line 15
>The login 'MyDomain\sql-admins' does not exist.
>-----
>
>The login does exist though.
>
>Any help is appreciated.
- Previous message: Sue Hoegemeier: "Re: Can't start SQL 2000 after MS Update"
- In reply to: Andy: "error adding Windows group security to database"
- Next in thread: Andy: "Re: error adding Windows group security to database"
- Reply: Andy: "Re: error adding Windows group security to database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|