Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Assign permisssion to stored procedures

Author  Topic 

mk_garg20
Constraint Violating Yak Guru

343 Posts

Posted - 2005-07-24 : 21:50:40
I have a database used "abc"

I want to assign permissions to this user for all user created stored procedure in my database.

How i can do it?

Thanks

mk_garg

timmy
Master Smack Fu Yak Hacker

1242 Posts

Posted - 2005-07-24 : 22:02:47
You could probably create a procedure that scans sysobjects or the related INFORMATION_SCHEMA view and assign EXEC permissions to all that match your criteria.
There may be an easier way, but that's the way I'd probably do it.

Tim
Go to Top of Page

mk_garg20
Constraint Violating Yak Guru

343 Posts

Posted - 2005-07-24 : 22:08:20
Thanks

another question is:-

how can is see list of all object that has permission to databse user "abc"

mk_garg
Go to Top of Page

timmy
Master Smack Fu Yak Hacker

1242 Posts

Posted - 2005-07-24 : 22:16:45
Look in syspermissions.

Do a Grant EXEC ON ... TO and see what goes in there....

Go to Top of Page

mk_garg20
Constraint Violating Yak Guru

343 Posts

Posted - 2005-07-25 : 00:19:28
i used that!

Thanks for your help timmy

mk_garg
Go to Top of Page
   

- Advertisement -