Re: Adding Win 2000 account to SQL Server database role
From: Sue Hoegemeier (Sue_H_at_nomail.please)
Date: 09/22/05
- Next message: Joe Yong: "Re: Impact of Changing Authentication Mode"
- Previous message: Sue Hoegemeier: "Re: dbo permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 21 Sep 2005 20:00:41 -0600
Maybe you were trying it just through Enterprise Manager?
You need to use the system stored procedure to do this. Try
the following:
Create a new user on the machine.
In Query Analyzer, execute the following:
use northwind
go
sp_addrolemember 'db_datareader', 'YourMachine\YourUser'
The windows account will show up a user in the database with
access via group membership. You don't have to first add the
login or add the user to the database.
-Sue
On Wed, 21 Sep 2005 08:06:04 -0700, Nam
<Nam@discussions.microsoft.com> wrote:
>According to SQL Server 2000 Books online:
>
>"When you add a Windows NT 4.0 or Windows 2000 login without a user account
>in the database to a SQL Server database role, SQL Server creates a user
>account in the database automatically, even if that Windows NT 4.0 or Windows
>2000 login cannot otherwise access the database".
>
>My Questions: How can you add a login to a role without a user account (with
>that login) in the database? So, I don't understand the above comments. I was
>unable to create the above example since I had to create a win 2000 login as
>a user in the database first before adding that login to a role. Can someone
>please explain the above comments?
>
>Thanks,
>Kev
- Next message: Joe Yong: "Re: Impact of Changing Authentication Mode"
- Previous message: Sue Hoegemeier: "Re: dbo permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|