CREATE ROLE doesn't work in master database

Running the CREATE ROLE statement in master database as server-level principal gives:
Msg 15247, Level 16, State 1, Server NNN, Line 10
User does not have permission to perform this action.
Running the same statement in user database succeeds. Is there a way to create a role in master database in SQL Database?

Hi Martin,
Thanks for reaching out. It is not possible to create roles in the logical master in SQL database. Some more information on user management in SQL database can be found here: https://msdn.microsoft.com/en-us/library/azure/ee336235.aspx
Thanks,
Jan

Similar Messages

  • Assigning role to role doesn't work when applying Database security model

    I applied Oracle Database security model for BI Publisher.
    then I create some roles and users and assigned roles to users in Oracle Database.
    i also assigned appropriate folders to each role in BI Publisher.
    the users with direct roles worked successfully but i got problem when i assigned roles to a super role, and assigned this role to a super user.
    the super user could only access guest folder.
    Please help me.
    thanks.
    Daniel
    Edited by: user13344498 on Jul 5, 2010 11:13 PM

    Add a Role to a Role:
    1. From the Security Center, select Roles and Permissions; this will invoke the
    Security Center page. Here you can see the list of existing roles and permissions.
    2. Select the Add Roles icon for the Role.
    3. Select the desired role from the Available Roles list and use the Move shuttle
    button to move it to the Included Roles.
    this is from "Oracle® Business Intelligence Publisher User's Guide Release 10.1.3.2 Part No. B40017-01" book, but the security model is BI Publisher Security.

  • Is it possible to create a new table in the master database with SSMS ?

    Hello ,
    I have problems with this thread :
    http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/5153c43b-7844-41c4-a414-d14730abe435/
    If no user database has been created , in SSMS , we can see only the 5 system databases ( master, msdb , tempdb... ).
    Logically , the user should connect automatically on the Master database ( if the user is the same as this used to install a new SQL Server instance, this user should be sysadmin that's to say he/she has all possible permissions and especially dbcreator ).
    Is it true that it is impossible to create a new table on the master database ?
    I have done many researches about this possibility , all I have found is the advice : don't touch to the master database. This database is used to store critical information about the instance and its user databases. Even in the last book of Kalen Delaney
    about SQL Server 2012 Internals , I have found nothing clear about the creation of tables in this database ( and what about the other system databases ? I am excluding tempdb ).
    If someone has an idea about this thread and my questions , I would be thankful for a reply on this thread or on the related thread in the SQL Server Express Forum ( with my poor written English , I am not sure to have poster in a correct and understandable
    way ).
    If you think that this thread is not in the good forum , a moderator of this forum can move this related thread ( I have not done the move as I am not sure which is the good forum Database Engine or Transact-SQL ... )
    Thanks beforehand and have a nice day.
    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

    >>Logically , the user should connect automatically on the Master database ( if the user is the same as this used
    to >>install a new SQL Server instance, this user should be sysadmin that's to say he/she has all possible permissions and >>especially dbcreator ).
    If you add the current user during the installation you can have it as system admin , or you can add him/her later on
    in SQL Server. BTW regarding dbcreator I have wrote some blog , need to read... :-)
    http://sqlblog.com/blogs/uri_dimant/archive/2010/09/02/be-careful-to-grant-dbcreator-server-role-to-the-user.aspx
    You can (if you have needed permissions) to create objects in master database, usually I create objects for instance maintenance (like rebuild indexes...) 
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Roles doesn't work

    when I connect as SYS ,I find the following error:user SYS lack create SESSION privilege.logon denied. I am sure the SYS has been given the connect role and the connect role has been give the create session privilege,so it seems the role doesn't work.I want to know what cause this error,and how I can fix this error. Any answer is welcome. Thank you in advance.
    Ti

    HI,
    Can you please tell me the SP level of GRC 10.0 which you are using because this was issue in SP02 which was fixed in SP03.
    Currently there are many issues in GRC 10.0. Most of them are resolved in SP04 (yet to released) and some in SP05 (Next release of GRC 10.0).
    Regards
    Rajan Arora

  • Select Granted By Role Doesn't Work

    Oracle 11.1.0.7.0 running on AIX
    This is crazy I don't know why it is happening or even how it is happening but when I grant a role to a user they still cannot select from the granted tables & views.
    CREATE ROLE RETROMAN_USERS NOT IDENTIFIED
    GRANT SELECT ON YBP.DDA_STATUS_CODES TO RETROMAN_USERS
    GRANT SELECT ON YBP.DEMAND_DRIVEN_ACTIVITY TO RETROMAN_USERS
    GRANT SELECT ON YBP.V_DDA_STATUS_CODES TO RETROMAN_USERS
    GRANT SELECT ON YBP.V_DEMAND_DRIVEN_ACTIVITY TO RETROMAN_USERS
    GRANT RETROMAN_USERS TO SABEL WITH ADMIN OPTION
    GRANT RETROMAN_USERS TO CKING
    GRANT RETROMAN_USERS TO FCROWELL
    GRANT RETROMAN_USERS TO HCAMPBELL
    GRANT RETROMAN_USERS TO LJOHNSON
    GRANT RETROMAN_USERS TO RWILLIAMS
    GRANT RETROMAN_USERS TO LMONTCALM
    When I try to Select * from ybp.Demand_Driven_Activity as hcampbell I get a "table or view does not exist" error. where other users can get results using the same query. Any ideas? I am completely out of them. I am not a DBA and our company doesn't employ a DBA - scary huh. Any help would be greatly appreciated.
    Scott

    OK, the user cannot select from the table...
    $ sqlplus hcampbell@devorcl
    SQL*Plus: Release 11.1.0.7.0 - Production on Wed Aug 22 07:51:33 2012
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from ybp.demand_driven_activity;
    select * from ybp.demand_driven_activity
    ERROR at line 1:
    ORA-00942: table or view does not exist-----
    Let's grant the role and verify that the role is assigned and what privileges it has.
    oracle@qa:/home/oracle
    $ sqlplus sabel@devorcl
    SQL*Plus: Release 11.1.0.7.0 - Production on Wed Aug 22 07:53:21 2012
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> grant retroman_users to hcampbell;
    Grant succeeded.
    SQL> select * from DBA_ROLE_PRIVS where grantee = 'HCAMPBELL';
    GRANTEE                        GRANTED_ROLE                   ADM DEF
    HCAMPBELL                      YBPREGUSER                     NO  YES
    HCAMPBELL                      OOPS                           NO  YES
    HCAMPBELL                      YBPENDUSER                     NO  YES
    HCAMPBELL                      RETROMAN_USERS                 NO  NO-----
    The role does exist (I think) and has the following permissions
    SQL> set linesize 132
    SQL> Select * from role_tab_privs Where   role = 'RETROMAN_USERS';
    ROLE                           OWNER                          TABLE_NAME                     COLUMN_NAME
    PRIVILEGE                                GRA
    RETROMAN_USERS                 YBP                            DEMAND_DRIVEN_ACTIVITY
    SELECT                                   NO
    RETROMAN_USERS                 YBP                            V_DEMAND_DRIVEN_ACTIVITY
    SELECT                                   NO
    RETROMAN_USERS                 YBP                            DDA_STATUS_CODES
    SELECT                                   NO
    ROLE                           OWNER                          TABLE_NAME                     COLUMN_NAME
    PRIVILEGE                                GRA
    RETROMAN_USERS                 YBP                            V_DDA_STATUS_CODES
    SELECT                                   NO
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options-----
    sys can't see the role though - but that may be normal...
    $ sqlplus sys@devorcl as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Wed Aug 22 08:30:34 2012
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> Select * from role_tab_privs Where   role = 'RETROMAN_USERS';
    no rows selected-----
    The user still cannot select from the table
    $ sqlplus hcampbell@devorcl
    SQL*Plus: Release 11.1.0.7.0 - Production on Wed Aug 22 08:39:46 2012
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from ybp.demand_driven_activity;
    select * from ybp.demand_driven_activity
    ERROR at line 1:
    ORA-00942: table or view does not exist-----
    let's try to make it a default role....
    $ sqlplus sabel@devorcl
    SQL*Plus: Release 11.1.0.7.0 - Production on Wed Aug 22 08:42:59 2012
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> ALTER USER HCAMPBELL DEFAULT ROLE YBPREGUSER, OOPS, YBPENDUSER, retroman_users;
    User altered.
    SQL> exit-----
    after the user logs out and then back on, now user can access the table.
    oracle@qa:/home/oracle
    $ sqlplus hcampbell@devorcl
    SQL*Plus: Release 11.1.0.7.0 - Production on Wed Aug 22 08:47:57 2012
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> Select Count(1) from ybp.demand_driven_activity;
      COUNT(1)
        161295If I remove the retroman_users from the default role I can still access the table until I log out and then back in so it must have something to do with default roles. I don't know why I didn't see this before but the other users that were granted the retroman_users role and could access the table had their default role set to ALL. Sorry, I didn't give you all the information that you needed to help me, this might have helped:
    CREATE USER HCAMPBELL
      IDENTIFIED BY h
      DEFAULT TABLESPACE DATASMALL
      TEMPORARY TABLESPACE TEMP
      PROFILE DEFAULT
      ACCOUNT UNLOCK
      -- 4 Roles for HCAMPBELL
      GRANT YBPREGUSER TO HCAMPBELL
      GRANT OOPS TO HCAMPBELL
      GRANT YBPENDUSER TO HCAMPBELL
      GRANT RETROMAN_USERS TO HCAMPBELL
      ALTER USER HCAMPBELL DEFAULT ROLE YBPREGUSER, OOPS, YBPENDUSERI guess I need to read more about Default Roles. Sorry for my belligerent responses.

  • Create Directory Doesn't Work!!! (stupid computers, mumble grumble)

    Ok, so maybe I'm an ass.... but this rather simple section of code to dynamically create a timestamped directory if it's not there, and not create it if it is, doesn't work.  I can't understand why it doesn't, but it doesn't.  Can someone please help me out, I've written a huge super complex imaging program and finished it this past sunday only to have the very last problem in the software be with this stupid save file routine!
    Thanks so much for the help!
    Jonathan
    Attachments:
    createnewdir.vi ‏18 KB

    Jonathon,
    When I run your VI on my Mac, I get a File not Found error from the File/Directory Info function. That error is fed into the New Directory function, which probably prevents it from running. I think the same thing will apply to other OSes, but I am not sure.
    Try putting a probe on the error in line inside the case structure and see what you get.
    Lynn

  • Application doesn't work after build (database toolkit and report gen toolkit).

    I wrote an application using database toolkit and report gen toolkit to retrieve some data from a database,  put into a Word doc, save the Word doc and print it.  It works fine when I run the vi, but when I build and run it, it does nothing.   I have tried all of the settings in Projec Manager that I think might help but it still won't work right.  Labview 8.2.1, XP.
    Thanks,
    Charlie
    Solved!
    Go to Solution.

    Thanks for the help.  I finally abondened the Word append table and used the regular report gen append table and got it to work fine.  The error was 214682314.  That led me to the thread about column numbers must vbe between 1 and 63, but like I said, my coulumn number is 7 so don't know what is going on.  Anyway I got the vi to work and do what I want so I guess now the problem is solved (moot).
    Charlie

  • Created clone doesn't work??

    Thank you for your attention.
    I am doing a project on transmiting video and audio from a server to some clients. It works well on trasmission, but I would like to show the visual component on the server computer during transmission and I get trouble in here.
    My original method is use medialocator "vfw://0" to form a DataSource. And then use this DataSource to form its clone. I use the original DataSource to create player for visual component. On the other hands, I use the clone to combine with audio DataSource to form a merged DataSource for transmission. However, as the result, the transmission is fail in this case.
    If I use clone as player for visualcomponent and original datasource for transmission, the transmission works well but the visualcomponent is fail.
    Can anyone give me some advices??
    My code in creating clone is as follows:
              try{
                   vcDS = Manager.createDataSource(locatorV);
                   if (vcDS== null) {
                   System.err.println("Cannot create DS for VisualComponent.");
                   System.exit(0);
                   ds = Manager.createCloneableDataSource(vcDS);     
                   if (ds == null) {
                   System.err.println("Cannot clone the given DataSource");
                   System.exit(0);
              } catch(IOException ioe){
                        System.out.println("IO Exception!");
              } catch(NoDataSourceException ndse){
                        System.out.println("No DataSource Exception!");          
              createPlayer(((SourceCloneable)ds).createClone());     
    //           createPlayer(vcDS);     
              MergedDS = createMergedDataSource(locatorA, ds);
    Cheers!!
    Andrew

    hi
    andrew i worked on similar application, according to my knowledge
    once the datasource is converted to cloneable datasource u must no longer use the original datasource , better create two clones and use them.

  • Packager Created App Doesn't Work On iOS 3.1.3

    I compiled an app from Flash CS 5.5 and tried installing through iTunes and I get an error saying a newer version of iOS was required. It seems odd that the packager doesn't support older iOS versions. Will I have to install CS 5 in order to get iOS 3 compatible apps?

    If you want one app to be able to work on old devices, but live with the older features and performance, and another version that uses the new features, and better performance, but only works on newer devices, then yes. As the new version would also allow you to use the Retina display, you could perhaps call it "HD", or something else that's different to explain why there are two different iPhone versions of the same app.
    If you currently have an app in the store that you're trying to update, then it will have to keep the old features and performance, you're not allowed to upload an update that drops support for devices that the earlier version supported. So again, you could have a new app that is named differently, that doesn't support the old devices.
    Any of the people who bought your earlier app and now want the new better performing Retina version, would have to pay again. You might think about having an incredibly good intro price, just so as to not upset those people too much.

  • New Site create - select doesn't work ok

    OS Vista Home Premium. Installed DW CS3 and when create new site and setting up folders, button select does not work ok. It point to the folder one up not the present one. If c:/root/image and I'm in image the select point to root.
    http://www.youtube.com/watch?v=iCiKtVMhS5Y Is it problem with DW or Vista ?

    Yup, I've had the same problem in CS3 and now CS4.  After much MUCH googling, the only thing I've found so far is that this problem developed for people after SP2 came out for Vista.  I haven't seen any fixes for it yet.  My only solution is to automatically create a folder inside the folder I want to use as my root....then I select that folder.  After going into that folder, the folder one level up, which is the one I want for my root is able to be selected.  After I get the folder I want set, I delete the dummy folder....or I name it images and use it as my image folder.
    Problem is, if I want to define a default image folder, or spry folder I have to make dummy folders inside those subfolders too.....its a real pain.

  • LV 7 Tree Control--Create Method doesn't work

    Just wondering if I broke something already or if this is a minor bug... when I try to create a method for a Tree Control I can only create the first five on the menu (non-control-specific) or the Double Click Method. These are all listed directly without sub-items while all other methods in submenus do not create a method when they are selected. Selecting them makes the menu disappear but nothing happens and there is not a method to place as is usually the case. The method can be created using a workaround--using one of the selectable methods (Double Click for example), then using the finger pointer to select a different method, but not by right clicking on a reference to the tree and trying to create method.
    Att
    ached is a screenshot--all items on the lowest level menu with an arrow to the right do not work.
    Attachments:
    nomethods.jpg ‏58 KB

    Congratulations. Looks like you found a bug... Probibly related to the submenus--don't remember methods having submenus before V7. In any case, you can also get at those methods if you drop down an invoke node from a palette and wire up the reference. Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Qosmio G30-117: WinDVD Creator 2 - created DVD doesn't work on DVD player

    Hi all, need help.
    When I create a DVD on WDVD2 all of the menus and the toggles work on a PC but not on any DVD players. They only work on a PC when I use the mouse and click. On a DVD player the arrow keys and play/enter dont work.
    Am I missing something?

    1.What type of DVD?
    2.If it is DVD-R(minus R) it will compatible with more than 90% of standalone DVD players
    3.If it is DVD +R,+RW compatibility is limited.
    4.I use DVD-R and -RW and so far no problems with dvd players
    5.I have done > 20 home DVD with win DVD creator 2 using toshiba Sonic record now with G20 to date without problems
    6.Make sure that you have AUDIO VTS and VIDEO VTS files on your created DVD
    enjoy
    min

  • Creating RAID doesn't work using Disk Utility

    When I try to create a RAID in Disk Utility, the pair gets corrupted and I get an error - "couldn't find RAID".
    What is missing? Is there something else to install?
    I'm trying this on an external USB drive.

    I gave up.

  • Stacking not working correctly, master doesn't show, no version stacking

    Hi,
    When I edit an image it does not stack the versions. I have no master to refer to. I can only see the edited version
    This happens on newly imp[orted files as welll as o;der files
    Automaically stack new version is  checked on.
    I can see the edited image but have no master image to comapre it to.
    If i use a plugin, the two images are stacked, but i can't see both, open stacks doesn't work
    I only see the master with a number an a indicator "1 of 2" in the left hand corner of the image, but open stack is greayed out
    so I can not see all versions
    If I Selet "New Version From Original" the 2 images stack, but the behavior is the same as above
    If i go to a previously made stack, say a year ago, it open and closes as it should
    The old stack when closed has a number (not 1 of 2 etc) in the left hand corner, when I open it the stack the border changes from none to being surrounded by a darker border.
    The stack that I made with new wersions is surronded in dark grey as if it is open, but onlt shows one image.
    Just as a note, I also lost all my default settings and ahd to re add them. In inspector i had to readd adjustments and reset them, the same thing happened in import and medtadata, I lost all my defaults. I can't tell you when this started happenins as I have not been using Aperture for a while.
    Hope this make sense,   Aperture 3.5.1  OS X 10.9.1
    Thanks,
    Maark

    Hi,
    Created a new database, imported a group of raws, If I used a plugin - stacks work properly, get original (master) and edited copy
    Editing does not create a stack. Some thing is corrupt in the install. It seems like it's creating the descriptive file for the edit, but won’t let the master be viewable
    Does anyone know how I can get a new install of 2.5.1, my copy comes from a serialized version of 2.x. (which won’t install from Mavericks) Then I will delete everything, plists, kexts, plugins, any support files for plugins, etc.Do the cleanest new install of Aperture. If I call Apple for support, it will cost me $49 and i don’t know if they will give me a new copy– I want the installer, just in case I have to reinstall again. It just seems like I would be paying for the program allb over again, on the other hand it’s cheaper then that other company, Ado..something @$150 and start from scratch
    Sorry if I’m venting, but this is frustrating.
    Thanks,
    Mark

  • Error during create CR for MDGC "Enter a relevant role for creation of customer master data"

    Hello Experts,
    I am unable to create a Customer CR in 'MDG 6.1 Customer UI' , the UI throws an error saying "Enter a relevant role for creation of customer master data".It looks like it is expecting me to mention the BP role ( like FLCU01 Customer or FLCU00 FI Customer ) , but I don't see that BP role section in the Customer UI to mention .
    While creating the vendor CR  , I am able to enter the BP role ( like FLVN01 vendor or FLVN00 FI Vendor ) in the UI BP Role section.
    Following are the UI's for Customer and Vendor
    Customers BS_OVP_BP: BS_OVP_CU > OVP: BS_CU_OVP - I do not see BP role section here.
    Vendors BS_OVP_BP: BS_OVP_SP > OVP: BS_SP_OVP - This is working fine  , I see BP role section here.
    Please advice what I am missing here , what should I do for the successful CR creation . Should I change the UI for Customers or do I need to do anything in CVI configuration.
    Thanks,

    Hi Abdullah,
    You were right in the first place the UIBB is missing  , the UIBB 'Role' was present in the 'Search Customer' page but not available in the 'Create Customer CR' page , so I created the 'Role' UIBB again and was able to create the CR now . Not sure how it got deleted in the first place , is there any options where we reset the UI screen to the default initial configuration
    But after approving the CR , only the Business Partner BP is getting created and the Customer is not getting created . Not sure what might be the issue now. Is there any config that tells to automatically create customer when BP is created. I was able to create Vendor using the create Vendor CR before.
    Thanks

Maybe you are looking for

  • Itunes, downloads, unable to find music.

    I recently bought a new iMac computer. I switched from a pc. I migrated my itunes to the new Mac. I purchased music on my iPad that evening and it automatically downloaded on to the new computer, but it could not find the files. After about an hour o

  • "message could not be delivered"

    MAILER-DAEMON are replying that message can not be delivered when sendin to my mac addresses!? this started last night. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For furth

  • Edit in Photoshop "Grayed out"

    I have Photoshop CS5 Extended and Lightroom 2.7. When selecting 5 images, right clicking on them and trying to edit them in Photoshop those features are grayed out. Actually all feature which should work with PS are grayed out, but Nik features work.

  • Looking for a glossary split up script

    Hello, I'm a novice to AppleScript and I'm looking for a script that will be useful for me as a translator: a script to split up a glossary with source-side alternatives, separated by semicolons. As a matter of fact I'm not sure whether this is somet

  • By default in a table,adf query panel should be executed first time output

    Hello all, I am using adf 11g. I have taken adf query panel and i have taken seperate another table.My Requirement is first time in table ,query should be executed after that in search button then according to date/query should be executed in a table