How do I add a securable to a database role?

I have a database where the stored procedures used by SSRS reports have to be added as securables to the db_execproc database role.
Easy enough to do with SSMS but despite much searching, I can't see how to script that. With the Database Role Properties open, the securables page selected and one of the securable stored procedures select including the Explicit Execute Grant, I tried clicking
the Script button at the top of that dialogue. It tells me no action to script. What's the point of that button then, if it won't script that for me?
Yeah, bad practice to do it that way but I don't have the authority to change things so best thing in the circumstances is to code it.
Nick Ryan SQL Server Developer OnePath (NZ) Ltd

The script button will produce a script only if you made any changes - i.e., if you were to click the OK button on the Properties dialog that would have applied some changes to the existing properties. 
In any case, if you want to grant execute privilege to a stored proc, the script would be
use [YourDBName]
GO
GRANT EXECUTE ON [dbo].[YourStoredProc] TO [YourRollName]
GO

Similar Messages

  • HT5312 how can i add a secure email address to my account if i don't know the answers to my security questions?

    how can i add a secure email address to my account if i don't know the answers to my security questions?

    I don't know either! I NEED HELP CAUSE I PUT MONEY INTO IT and they ask for my SECURITY QUESTION ANSWERS! When I try to change my security questions, which i forgot, they askk me for the ANSWERS TO MY SECURITY QUESTIONS!!!!!!!!!! I CAN"T DO IT IF I DON"T KNOW IT!

  • How i can associate my app user with database role

    In my application (oracle forms application developed in-house - We are using Oracle Forms 11gR2 with WebLogic 10.3.5 ), i want to use "application user" instead of database user.
    I have an application users table, actually, i have database users,and of course, menu application works with database roles (It was developed with oracle forms menu module), my question is, How i can associate my application user with database role, for reusing oracle forms menu funcionality?. It's possible?
    Thanks,
    Edward

    user8929172 wrote:
    In my application (oracle forms application developed in-house - We are using Oracle Forms 11gR2 with WebLogic 10.3.5 ), i want to use "application user" instead of database user.
    I have an application users table, actually, i have database users,and of course, menu application works with database roles (It was developed with oracle forms menu module), my question is, How i can associate my application user with database role, for reusing oracle forms menu funcionality?. It's possible?
    Hi Edward
    You can do this by assigning the role functionality to the application user. For example
    create the table to enter user name.
    create table to enter group name.
    create table to assign user to group.
    assign role to group.
    assign functionality for the user by coding.
    hope this helps

  • How can I add a security password to an Airport extended network?

    I have an Airport Extreme network extended with an Airport Express and an older Airport Extreme.  Everything works fine as is.  I want to add a security password to the network but when I do, the two extending base stations appear in Airport Utility with an alert triangle next to them and when I select each of them, it asks if I want to "foget" that device.  I do not want to forget those devices as they are extending the range of the network, I just want a password on the entire network for privacy.  How do I accopliish this while still maintaining the extended network?

    Conversely, set the security feature for each of the extending base stations first, then set the security for the main base sation.  The extending base stations will go offline. Then back on once the main base station is configured with the same password as the two extenders.
    (Found this on an older post about the same issue.)

  • Urgent How do I add Wsse:Security  soap:mustUnderstand="1" in SOAP Document

    Hi All,
    I am trying to consume external web service with WS Security. How do I add the below nodes to my SOAPDOC?
    <soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <wsse:Security soap:mustUnderstand="1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    Can anyone help in this regard?
    Thanks!
    Pradeep
    [email protected]

    try following
    &Sdoc = CreateSOAPDoc();
    &Sdoc.AddEnvelope(0);
    &Sdoc.AddHeader();
    &Sdoc.AddBody();
    &Sdoc.AddMethod("someelement", 1);
    &MethodNode = &Sdoc.MethodNode;
    &textNode = &MethodNode.AddText("12345");
    &HdrNode = &Sdoc.HeaderNode;
    &HdrAttribute = &HdrNode.AddAttribute("xmlns:soapenv", "http://schemas.xmlsoap.org/soap/envelope/");
    &WsseNode = &HdrNode.AddElement("wsse:Security");
    &WsseAttribute = &WsseNode.AddAttribute("soap:mustUnderstand", "1");
    &WsseAttribute = &WsseNode.AddAttribute("xmlns:soap", "http://schemas.xmlsoap.org/wsdl/soap/");
    &WsseAttribute = &WsseNode.AddAttribute("xmlns:wsse", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd");
    &strxml = &Sdoc.XmlDoc.GenFormattedXmlString();
    &MYFILE = GetFile("c:\temp\test.xml", "N", %FilePath_Absolute);
    If &MYFILE.IsOpen Then
       &MYFILE.WriteLine(&strxml);
       &MYFILE.Close();
    End-If;content c:\temp\test.xml:
    <?xml version="1.0"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP-ENV:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
        <wsse:Security soap:mustUnderstand="1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
      </SOAP-ENV:Header>
      <SOAP-ENV:Body>
        <someelement>12345</someelement>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

  • How to install Oracle Label Security in Oracle Database 10g EE

    Hello All
    I just want to know how to install Oracle Label Security in Oracle 10g Database EE.
    I read in Oracle Enterprise Manager Grid Control Installation and Basic Configuration that Label Security must be installed before installing Enterprise Manager Grid Control.
    I have Oracle Database 10g Release 1 (10.1.0.1) on my Windows XP System, and I patch it to 10.1.0.3.
    M.
    Sorry about my English.

    Options is to connect to Oracle Policy Manager or use Oracle Internet Directory (OID)to administer Oracle Label Security.
    Find more ways in the Documentation here:
    http://download-uk.oracle.com/docs/cd/B19306_01/network.102/b14267/toc.htm

  • How to apply row level security against the database administrator

    I would like an advice in applying row level security against the database administrator. We need to prevent DBA from editing data in some table rows or have any indication that data was corrupted.
    There is no problem in viewing the data so we considered one way hash function or digital signature which will be stored in the same table, but we see following disadvantages:
    HASH - DBA may use the same hash function to update the stored data after he changes the sensitive row.
    Digital signature - the is a need to manage and keep the private key in a safe place outside of DB
    Is there additional ways to achieve the aim?

    Does VPD helps to prevent from DBA to edit/view a data in specific rows?Yes.
    If I correctly understand, DBA has full access to security policy used by VPD to control the access and can grant himself privileges that I don't want.You can to define which users can be exempt of the politics, for the context or by Grant EXEMPT.
    This includes DBAs.
    The simple fact of being DBA doesn't guarantee the exemption.
    Everything goes to depend of the VPD config.

  • How do I add a secure site to my bookmark toolbar?

    Sites are showing grey lock and they won't move to tool bar. This worked on previous versions of FIREFOX before my drive crashed and I had to reload to FIREFOX 25.

    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible.
    *Firefox menu button > Options
    *View > Toolbars (press F10 to display the menu bar)
    *Right-click empty toolbar area
    Use Toolbar Layout (Customize) to open the Customize window and set which toolbar items to display.
    *check that "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *if "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette into the Customize window to the Bookmarks Toolbar
    *if missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *if you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar setup
    *https://support.mozilla.org/kb/How+to+customize+the+toolbar
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • How can i add & update records in a database by using text feild & buttons

    i ,ve a difficulty to make an application which should add,retreive,update,find&delete records to a database in SQL server2000.
    how can i do it easily plz reply me as soon as possible.

    Your question is WAY too broad. People are here to help with problems, not write programs for you. Do you know anything about AWT? Swing? JDBC? SQL? Databases? If not, I suggest you start working with the Tutorials to the left side of this page and come back when you have a specific question.

  • HT4262 how do I secure my new airport extreme802.11n router and how do I add a wireless printer and my iPad2.  My computer is a HP

    how do I secure my new airport extreme 80211.n.  how do I add my iPad2 and my wireless canon Pixma MG8120B printer
    Thanks

    Did you try to put a lock on it?

  • How the **** do you reset the security questions? And how do you add a backed up library to a new computer?

    So I have a couple issues and I am extremely frustrated, I'm about to smash all of my apple products.
    First issue is how do you reset the security questions? Can't seem to find the "forgot answer" of anything like that.
    Second is my old comp crashed so I backed up my iTunes to an external HD, got the file on the new computer, installed iTunes, got alot of my old music from iCloud, but didn't get all my music so I went to add a folder like the support thing I found said, but there's only an add file option, do I have to add each song?
    Is there a way to get the songs from my iPhone to the iTunes library? It has all of my music on it as well
    Thanks
    Mike

    For the security questions......
    On your computer or safari on your iOS device navigate to:
              For Canada - https://appleid.apple.com/ca.
              For United States - https://appleid.apple.com/us/.
    Click the "Manage your Apple ID" button, and sign in to your iCloud account.  Once in, on the left side select "Password and Security", and this will populate our options on the right side.  You should see an option to reset your security questions. 
    Also see this article about your "rescue email address" - http://support.apple.com/kb/HT5312. 
    If for any reason you can not reset these security questions, or get an error, then you may need to contact Apple directly - http://support.apple.com/kb/HE57.   Explain the issue, and they can get your to a "Account Security" agent, who will be able to verify your identity, and assist in resetting the security questions.
    For iTunes....
    Is the music you are missing purchased from the iTunes store?  If so
    you can Download Past Purchases - http://support.apple.com/kb/HT2519.

  • HT5312 How can I add a rescue email? I forget my security questions and need to add another email to reset them. I did not add a rescue email  when I originally signed up.

    I do not recall ever answering the security questions therefore I do not know them and iTunes will not let me purchase music through my iPhone. How do I reset the security questions? I do not have a rescue email set up to do so. How can I add that?

    You can't now and need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    The time to create a rescue email address is when you set up the security questions, not after forgetting their answers.
    (90478)

  • How do you add a password to a secured web sight after you initially said no?

    How do you add a password to Safari for a secured web sight after you initially said no?

    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Test.

  • How to add another secure url in web.xml?

    hello i want to secure my web application i have two kind of users i have users and admin.each of them has each certificat users have permission to enter /users and admin have permission to enter /admins/ but i want also users to enter another folder which is /otheruserplace how can i add this in my web.xml file here is my code
    http://pastebin.com/m3e13d3d9

    Just add another url-pattern.
    This has nothing to do with JSF however. More suitable place would have been the Servlets forum.

  • HT5312 I've forgot security question and answer, how can I add rescue mail address and how can I reset my security question and answer?

    I've forgot security question and answer, how can I add rescue mail address and how can I reset my security question and answer?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (105466)

Maybe you are looking for

  • Lost 150GB

    I have been cleaning up and deleting a lot of excess files. My free space has not been improving much. I have about 150GB discrepancy. Looking in Finder with hidden folders showing totals about 431 GB used, 68 GB free. "About this Mac" similar number

  • Search function Help

    I really need to know how to create a search function for a website I'm creating, it's part of my University work. Any help would be appreciated. Thanks in advance.

  • Updating from OSX Server 10.4.11 to OSX Server 10.5.x

    (This has also been posted in the 10.5 section as well.) Question - We have a server running OSX 10.4 that we would like to update. Currently it's running in a local user mode, all of the users and user passwords and profiles are local to the server,

  • Lightroom CC has stopped working ...

    Hello, I upgraded lr 5.7.1 to Lr CC (via Creative Cloud) but when Lr CC lauches to upgrade the catalog I have a pop up : Lightroom has stopped working". What could be the problem ??? Many thanks

  • Problems with Adding Fields/Columns to Crosstab in XI

    Post Author: ph03nix CA Forum: General I am having problems with formatting a crosstab report in CRXI and am hoping that someone has a solution.  The crosstab report is a subreport, and requires the following columns, grouped by Firm (also not workin