Re: Database permissions
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 08/05/04
- Next message: Tibor Karaszi: "Re: Orphan Indexes?"
- Previous message: John Bell: "RE: sql agent alerts"
- In reply to: John Bell: "RE: Database permissions"
- Next in thread: Timothy V: "Re: Database permissions"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 5 Aug 2004 13:00:24 +0530
Hi,
Use the below system procedure to give the windows user /group to access sql
server
sp_grantlogin 'domain\group_or_user'
GO
Go to the database which user need access.
use <dbname>
GO
sp_grantdbaccess 'domain\group_or_user','FINANCE'
--Finance is the database user
Thanks
Hari
MCDBA
"John Bell" <JohnBell@discussions.microsoft.com> wrote in message
news:BE232D83-E110-40F9-8945-B46C01DBCA0A@microsoft.com...
> Hi
>
> Check out sp_grantlogin to grant a login to the SQL Server and sp_adduser
to add a user to the database.
>
> John
>
> "Timothy V" wrote:
>
> > Hi,
> > I'm wondering what code assigns a user to a database using 'Windows
> > Integrated' authentication.
> >
> > I have an ASP.NET application that says access is denied to user Network
> > Service (IIS6.0).
> >
> > Thank you in advance,
> >
> > Tim.
> >
> >
> >
- Next message: Tibor Karaszi: "Re: Orphan Indexes?"
- Previous message: John Bell: "RE: sql agent alerts"
- In reply to: John Bell: "RE: Database permissions"
- Next in thread: Timothy V: "Re: Database permissions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|