Generating code for Application Roles.
From: Roger Gillim (rgillim@vdh.state.vt.us)
Date: 03/25/03
- Next message: Swirlygirl: "SQL patches"
- Previous message: EarlT777@hotmail.com: "Getting Slammed by Virus"
- Next in thread: Mary Chipman: "Re: Generating code for Application Roles."
- Reply: Mary Chipman: "Re: Generating code for Application Roles."
- Reply: Tom Williams: "Re: Generating code for Application Roles."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: rgillim@vdh.state.vt.us (Roger Gillim) Date: 25 Mar 2003 10:16:49 -0800
I have a database with Application Roles that give permissions to
tables, views, and stored procedures.
I have made the code to create a copy of the structure of the
database, but with out application roles.
Assume I execute that code. I now have a database with no application
roles set.
I would like to generate the code for the Application role such that,
when the code is executed, the application role would be added:
(sp_addapprole), and permissions (Grant) set for all of the objects in
the database.
Using an existing database, how do I generate the code that creates
the application role in the database, and then sets the permissions
for the objects?
Thanks.
Rog Gillim
Vermont Dept of Health
Burlington VT 05402
- Next message: Swirlygirl: "SQL patches"
- Previous message: EarlT777@hotmail.com: "Getting Slammed by Virus"
- Next in thread: Mary Chipman: "Re: Generating code for Application Roles."
- Reply: Mary Chipman: "Re: Generating code for Application Roles."
- Reply: Tom Williams: "Re: Generating code for Application Roles."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|