Execute permissions problem

user created a stored procedure in one database and got "unable to execute stored procedure from database name blah blah", copied the stored procedure to another database and user could then execute it. User has exactly the same mapping in
both databases (i.e. db_datareader, db_datawriter, db_ddladmin) and is only in the server public role. why does he get the execute permissions problem on the firdt database? I have created a new user myself with the same mapping and get the same
problem.  
IGNORE THIS>> I can see what the problem is now, the EXECUTE effective permission is missing from the first database - anybody know how to create an effective permission?
Update on the above following your much appreciated comments:-
1. The full error message (with any sensitive detail masked out) is:-
Msg 229, Level 14, State 5, Procedure xxxxxxxx, Line 1The EXECUTE permission was denied on the object 'xxxxxxxxx', database 'xxxxxxxxx', schema 'dbo'.
2. The problem is one database automatically gives execute permission when a login is mapped to it (even with just the db_datareader role selected) but the other doesn't. To see the permissions I refer to, right click database select
properties/permissions select the user and look at effective permissions, user has connect,execute and select (explicit permissions are connect only). The same login mapped to the other database has connect and select permissions only.
I haven't given any explicit permissions to the login mapped to the first or second database so why does the first have the explicit execute permission granted atomatically and the second not?
Even when I map the logins to the db_datawriter and db_ddladmin as well I still don't get effective execute permission on the second database. I know I can grant explicit permissions at schema or database level but do I don't have to do that
on the first database. There are no specific permissions on the schemas (i.e. db_datareader/writer/ddladmin or dbo) to public role or users

user created a stored procedure in one database and got "unable to execute stored procedure from database name blah blah",
It might be your opinion that error messages are only blah blah, and it is not worth time reading them. However, there is often useful information in error messages, and next time you have a question, please include any error message in full. Even if the
message is nonsense to you, it may not be to us.
I can see what the problem is now, the EXECUTE effective permission is missing from the first database - anybody know how to create an effective permission?
When you create a procedure in a schema, you don't become owner of the procedure, but the schema owner becomes owner of the procedure. And with no further rights, the creator can't execute. This can be resolved by granting the user EXECUTE permission
on schema level or database level:
GRANT EXECUTE ON SCHEMA::dbo TO developers  -- schema-level
GRANT EXECUTE TO developers                 -- database-level
As the example hints, you should grant to a role rather than an individual.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • Cannot launch vivado simulator 2015.1: behav/compile.bat' script "Please check that the file has the correct 'read/write/execute' permissions"

    Hi,
    I'm trying to run a verilog simulation using the vivado simulator 2015.1 on Windows 7.
    I get the following error when I attempt to launch simulation:    
    ERROR: [USF-XSim-62] 'compile' step failed with error(s) while executing 'D:/projects/axi/axi_test_system/axi_test_system.sim/sim_1/behav/compile.bat' script. Please check that the file has the correct 'read/write/execute' permissions and the Tcl console output for any other possible errors or warnings.
    The tcl console repeats the same message, "Please check that the file has the correct 'read/write/execute' permissions"
    I cannot find any problem with the permissions.  I believe that windows will always execute a .bat file.   Within the same project, I can run elaboration, synthesis and implementation without problems. 
    Any idea why the simulation compile script won't run?
    Thanks,
    Ed

    Hi,
    Thanks very much for your detailed reply. These were the right questions based upon what I told you.   
    However, I took the code home last night and ran it on my webpack 2014.2 release.   It still failed, but I got completely different error messages.   These messages correctly pointed me to an undeclared signal in my testbench. Once fixed, the compile worked and the simulator launched. 
    This morning, I fixed the signal name in my 2015.1 setup, and it also compiled and launched correctly. 
    So, the problem wasn't actually related to file permissions.  It seems like the 2015.1 error message may be broken compared to 2014.2.  
    I was running the Vivado GUI, clicking on "Simulate > Run Behavioral Simulation"
    Thanks again for your help. 
    Regards,
    Ed  
      

  • Drive Permissions Problem

    I have several hard drives.
    All of the drives and enclosing folders have been set with the following permissions ...
    owner = system
    access = read and write
    group = admin
    access = read and write
    others = read only
    - ignore ownership on this volume = unchecked
    - for some reason one of my drives is not using permissions correctly. Even know I reset all the permissions ( and copy permissions to enclosed folders) for the drive as above several times - it has the following problems ...
    - every new folder I create uses a different permissions set up from what is listed above...
    - if I tried to delete a folder on the drive - it says it will be deleted immediately - rather than putting it in the trash...
    - this is just a dated Drive - there is no system on it.
    - I ran disk utility on the drive - repair disk - but it did not help.
    * Question: How can I fix this? What is going on? I sure would hate to reformat the drive...

    Rev,
    First, I'll advise you not to try to change permissions on an entire drive with the "Apply to enclosed items..." button. Hidden files on that drive should have specific permissions. Like the .Trashes folder and its sub-folders. You cannot change the permissions on a folder or file unless you own the file or you are the root user. The "Apply to enclosed items..." button will not work if you do not own the enclosed files or folders.
    Firewire drive are set to "ignore permissions" when you initialize the drive (put a file system on it). Unchecking the box in the Finder's Get Info window can produce varying results. In the Terminal application, type:
    vsdbutil -c
    and a space. Drag the hard drive icon on to the Terminal window. If the drive is permissions enable you should see something similar to this.
    Permissions on '/Volumes/<nameofvolume>' are enabled.
    If the drive is set to ignore permissions you cannot change the owner or group of the folder or file until the ignore permissions bit is removed from the volume header. It is "legal" to have an attached drive set to "ignore permissions" or have a drive owned by a specific user other the root (system). My preference is to have every attached drive owned by root (system) with read, write, execute permissions, the group set to admin with read, write, execute permissions, and others set to read and execute. With this setup only the root user or an admin user can grant rights within the drive's file system.

  • My iMac 8.1 was slowing down and had permissions problems. I backed everything up, and then re-installed. Now all I get is a black screen. Power+D gives me a hardware error message: HDD-1336. Help!

    My iMac 8.1 (10.6.8 ) was slowing down and had recurrent permissions problems, mostly with Java. I backed everything up, and then re-installed from time machine. Now all I get is a black screen which says I need to reboot. Power+D gives me a hardware error message: 4 MOT/1/40000003: HDD-1336 or HDD-1327. When I reboot from the OSX CD and start disc utilities everything checks out OK. When I reload 10.5.2 from the OSX CD everything seems to work OK and no more permissions problems. But then I loose all my email and safari stuff. Anyone have any ideas short of going back to my old PC?

    DonM. wrote:
    Hi
    Thanks for the help. No point in fooling around with it any more. Will I be able to use it as a monitor if I get a mimi mac?
    Cheers. Don
    No unfortunatley it's too old, you are referring to Target Display Mode which became avialble in 2009, your 2008 needs to have the HD replaced. I'd still do that if everything else is OK or you can simply buy a new MM and display or even a new iMac  or an Apple refurbished iMac to save money.

  • I am trying to authorize my computer and I get an error message: The required directory was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed. Help?

    I am trying to authorize my computer and I get an error message: The required directory was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed. Help?

    I used Terminal to change the permissions on the folder in question.  I followed the instructions in this article:
    iTunes: Missing folder or incorrect permissions may prevent authorization
    In my case, the folder was there, so I needed the command to change permissions on the folder, not to create one.   I was hesitant to use Terminal b/c I know that if I made an error I could wipe out my hard drive or render my computer unusable.  So to be SURE I didn't make an error, I carefully copied the command from that page and *pasted* it into Terminal.  Also, before I could do anything in Terminal, I had to go change my admin password (it had been a blank password before and that's not acceptable for making changes in Terminal).  I was just super careful when entering my password or doing anything else while Terminal was open (making sure I didn't accidently hit the spacebar or another key, etc.)  And it fixed the problem right away.
    What was confusing for me was that the iTunes error message said to change permissions in the FINDER, which is what I was trying to do.  It didn't mention Terminal.  What would really be helpful is if Apple included a link to a page like this in their error message.

  • Getting authorization error message: Required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    I have recently purchased this MacBook used and am trying to authorize it on the iTunes Store but even after uninstalling iTunes and re-installing it with a fresh copy I'm getting this error message: "The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed."  And I have no idea of where or how to fix this issue.  Any help or suggestions will be greatly appreciated.  I even tried to deauthorize this computer and got the same error message.  HELP!

    I used Terminal to change the permissions on the folder in question.  I followed the instructions in this article:
    iTunes: Missing folder or incorrect permissions may prevent authorization
    In my case, the folder was there, so I needed the command to change permissions on the folder, not to create one.   I was hesitant to use Terminal b/c I know that if I made an error I could wipe out my hard drive or render my computer unusable.  So to be SURE I didn't make an error, I carefully copied the command from that page and *pasted* it into Terminal.  Also, before I could do anything in Terminal, I had to go change my admin password (it had been a blank password before and that's not acceptable for making changes in Terminal).  I was just super careful when entering my password or doing anything else while Terminal was open (making sure I didn't accidently hit the spacebar or another key, etc.)  And it fixed the problem right away.
    What was confusing for me was that the iTunes error message said to change permissions in the FINDER, which is what I was trying to do.  It didn't mention Terminal.  What would really be helpful is if Apple included a link to a page like this in their error message.

  • Disk Permissions Problem on External HD Accessed Wirelessly

    Hello,
    I recently purchased a LaCinema Connect MiniHD and have been using it with a Western Digital 750Gb drive (formatted Mac OS Case Sensitive, non-journaled). I also recently bought a D-Link DWA-125 wifi dongle to use with the LaCinema.
    I can access and read/write to the drive without problem when it connected via USB to my computer or to my wife's laptop. However, when I try to trasnfer to it wirelessly over the network (i.e. when the drive is connected to the LaCinema which, in turn, is on the network) I receive error messages when I attempt to transfer files to certain folders (including the "root" folder). What is interesting is that the folders that I can transfer to appear to be ones that were created on my old work computer, with an earlier OS version (definitely not Snow Leopard).
    I suspect that I have some sort of permissions problem, but "Repair Permissions" is not available to me for this drive in Disk Utility.
    I have plugged in the drive into my computer and have reset the permissions so that the "owner", "staff", and "everyone" are able to read and write for all folders and sub-folders, but it has not solved the problem.
    Any advice would be greatly appreciated.
    Thanks,
    Graeme.

    Eric,
    I, too, apologize for the delay in posting. I have been away from the discussions for a rather extended period.
    Well, any NTFS formatted volume will only be accessible to you as read only. No, this is not something new, but has always been the case. To make matters worse, I have heard that Windows no longer provides any way to create a FAT-32 volume; one must use OS X to format the volume or use a third-party application in Windows. This information may be incorrect, but I wouldn't be surprised if it is true (we're talking about Microsoft, here).
    If you can copy any data on this drive to some other location, then use Disk Utility to format it as FAT-32, the data can then be copied back and it can be used to transport the data cross-platform, with read/write access on both ends. Is this a possibility for you?
    Scott

  • 10.4.6 update permissions problems

    Anyone know how to solve the permissions problems from the 10.4.6 update. For some reason after doing the update we can read only from our servers and they have a little lock icon next to them!!
    after searching the net a bit i know other people are having the same problems but cannot find a cure,
    anyone know???? help help
    cheers

    Same problem here.... Luckily--and it was pure dumb luck on my part--I only updated two computers before catching this problem.
    I'm curious if you've found any resolution to the problem? If so, could you post it here? If not, I'll post anything I manage to find....

  • HT2963 How can I fix permissions problems now that I have changed permission on my HD and have error code -8076, locked disk or ....?

    iMac v10.7.4. Error message says disk is locked. Permissions set for read/write admin (me). Can't open iTunes, Mail, photoshop, adobe bridge [you do not have permission!]. Fonts in Word are unexpected, not cambria. Used Disk utility to repair permissions (ran it twice, once before reinstalling photoshop from DVD; once today). Situation worsening.

    Permissions problems occurred after I downloaded Lion update on 6092012. I believe the  problem originates with  Lion (see the 19 pages of posted problems in the community). I have now talked with Apple Support rep and an Apple Genius. Have reinstalled Lion from the HD Recovery disk. I see some improvement but also at least one  new problem: TimeMachine apparently has lost all backups, don't know how or why. Will have to take machine to a mac specialist or wait for Mountain Lion to arrive. Lion is a bad cat.

  • New SSD, but LOTS of Permissions Problems

    I have installed a new SSD drive alongside my 1.5TB spinning drive on my 24" 2009 iMac 2.93GHz. I used Carbon Copy Cloner to move my everything except my User account over to the new 60GB SSD.
    I originally assigned the User's folder on the old drive using the Users & Groups User/Advanaced Options window to change the Home directory, but that resulted in unrecoverable crashes and I had to reinstall the OS three times until I finally left my old files on the old drive and just ran my Applications on the new drive, keeping everything else on the old drive, but not connected as a "user".
    However I've run into a ton of permissions problems with every file I open and many programs that access thos files and have done this so far to fix it:
    Run resetpassword on both drives in terminal when I rebooted to the Mac OS X install disk (Lion).
    Run Drive Genius' repair permissions utility.
    Run Disk Utility's repair permissions.
    I continue to have issues with every file I use on the old drive, so I'm at a loss to fix this in place. I did read somewhere that moving your files to another drive, then reformatting then moving back can by default fix any permissions issues, so am considering this as a fix:
    Move files on the old 1.5TB drive, folder-by-folder to an external drive.
    Reformat the "old" internal 1.5TB.
    Recopy everything on that external back on to my 1.5TB drive.
    Run Repair permissions on both drives.
    This isn't fast or elegant, but I want the issue fixed. I don't want to have to open "info" on every file I use and check and change every file permission before I can use it!
    Any input on whether or not this is a real fix or is there a better one?
    Thanks!
    JoeL
    Atlanta, GA

    May not have anything to do with your issue but often
    the master disk image loaded on your hard disk before
    it leaves the factory has old (and/or odd) bits of
    code on it. Plus the transfer is done as fast as
    possible. Last they do not zero and erase the drive
    before putting the image on it, so if there are bad
    sectors they may not be marked as such and may be in
    use (& corrupted).
    As you are having trouble get your data off as best
    you can, erase AND ZERO the drive, repartition, and
    only then re-load from your Install DVD.
    Takes extra time but better safe than sorry...
    Well, I have no real means to do this now as I sold off my G5 already
    Also, how do you zero it?
    When I reformatted my G5, I picked the option to wipe and reinstall, yet when I did, the drive name and bluetooth names were still my old ones! - Not encouraging.
    In any case, its clear I have a software problem, so looks like I'll need to burn a zillion dvds and start over .
    Thanks.

  • Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    I don't understand what to do. The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    jackeskew wrote:
    I don't understand what to do. The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.
    Can you explain a bit more about what you are trying to do or what you were trying to open? You need to add a lot more details.
    Thanks
    Pete

  • I can't sync my macbook air with my ipad, problems with authorization... this keeps cropping up: "The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permi"

    Help, cannot sync completely with my ipad, and i also cannot remove or delete shared photos which are clogging up my ipad 64GB memory! Some issue with this keeps croppin gup, so frustrating:
    "The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed."
    Not sure how we can correct his permissions problem, and whether authorising or deautorizing makes any difference, with more and more errors keep popping up, this got to be such after an update of the OS, can remember which!?
    HELP!!!

    follow this:
    Launch iTunes
    select iTunes Store from the menu on the left side.
    sign in via the link on the top right area if you haven't done so already
    click the link where you Apple ID email appears, enter your Apple ID password, click View Account, this will take you to a page displaying detailed information about your Apple ID account.
    The last item under Apple ID summary should be Computer Authorisations, click Deauthorize All
    now reauthorize any computers as needed when the system prompts you.
    good luck.

  • I am trying to back up my new iPhone after downloading/updating iTunes with iCloud. I get this message: The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permiss

    I am trying to back up my new iPhone after downloading/updating iTunes with iCloud. I get this message: The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permiss
    how do I find the file and replace it or install it?

    I'll reload it tonight when I get home...basically, I bought a new iPhone and downloaded some new medical apps. also had to download an update for iTunes into my mac laptop so I could access iCloud (which was NOT on my prior iTunes software)
    When I synched my new iPhone with the newly downloaded iTunes, I registered my iphone and tried to "back it up" to iCloud and the message indicating that "the required file was not found or has a permissions error...." popped up.
    How do I correct the permissions error, or...am I able to do this somewhere? Or...how do I find the file that is missing?
    Dr. Bob001

  • I keep getting this error message The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    I keep getting this messae when I try to share itune to my new mac The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    Doublechecking. In the course of your troubleshooting to date, have you worked through the instructions from the following document?
    iTunes: Missing folder or incorrect permissions may prevent authorization

  • TS1459 The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    please help me how to authorize my computer as it always say The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    Many thanks. If you're on Mac OS, let's try the following document:
    iTunes: Missing folder or incorrect permissions may prevent authorization

Maybe you are looking for