Re: grant execution permission
From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 10/01/04
- Previous message: Farhan Iqbal: "grant execution permission"
- In reply to: Farhan Iqbal: "grant execution permission"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 1 Oct 2004 06:41:21 -0500
You can add the user to the database containing the proc and then grant
execute permission to the user/role:
USE MyDatabase
EXEC sp_grantdbaccess 'MyDomain\MyUser'
EXEC sp_addrolemember 'MyRole', 'MyDomain\MyUser'
GRANT EXEC ON MyProcedure TO MyRole
-- Hope this helps. Dan Guzman SQL Server MVP "Farhan Iqbal" <anonymous@discussions.microsoft.com> wrote in message news:212d01c4a7a9$66756de0$a401280a@phx.gbl... > hi, > > I want to grant execution permission to user which is > residing in another database on same machine, how can I? > Please help > > > Thank you, > Farhan Iqbal >
- Previous message: Farhan Iqbal: "grant execution permission"
- In reply to: Farhan Iqbal: "grant execution permission"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|