sp_GrantAllProcs.txt

This script has been designed to grant EXECUTE to all non-system stored procedures. Install the script in master to run from any database and pass username or role in single quotes. I find the script useful because (unless I’ve totally missed something) db_datareader/db_datawriter does not convey execute permissions to stored procedures.

The script has only been tested on SQL 7.0, but it should work on 6.5 and 2000 as well.

Author: John Fichera

Download Script:
sp_GrantAllProcs.txt



Disclaimer:
We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
“as -is”, without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose…

Disclaimer Continued

Back to Database Journal Home

Get the Free Newsletter!

Subscribe to Cloud Insider for top news, trends & analysis

Latest Articles