Re: Grant Execute to user on procedures
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 07/03/04
- Previous message: Bent Lund: "Grant Execute to user on procedures"
- In reply to: Bent Lund: "Grant Execute to user on procedures"
- Next in thread: Jasper Smith: "Re: Grant Execute to user on procedures"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 3 Jul 2004 21:20:12 +0530
Hi,
In Query Analyzer execute the below script with Text result.
Use <dbname>
go
select 'grant execute on '+name +' to ABC' from sysobjects where name like
'MTS%' and type='P'
-- The above script will generate a script to grant execute previlage to ABC
user for all procedures start with MTS%.
Copy the result window and paste in a new Query analyzer window and execute
it.
Thanks
Hari
MCDBA
"Bent Lund" <bstlu@online.no> wrote in message
news:ucjryKQYEHA.3012@tk2msftngp13.phx.gbl...
> Hi,
>
> is there a easy way of grantinng Execute-privilegies to user ABC for all
> procedures named 'MTS*' in a database?
>
>
>
> regards,
>
> Bent S. Lund
> System Developer
> MCP VB
>
> *** Sent via Devdex http://www.devdex.com ***
> Don't just participate in USENET...get rewarded for it!
- Previous message: Bent Lund: "Grant Execute to user on procedures"
- In reply to: Bent Lund: "Grant Execute to user on procedures"
- Next in thread: Jasper Smith: "Re: Grant Execute to user on procedures"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|