Select permissions on Master db SysCacheObjects

  • Hello,

    I'm using a script I grabbed from this site that indicates whether a PROC is currently running or not. It queries the master..syscacheobjects table.

    How do I set up the security and permissions so that users (using one, general SQL login) can get permissions to run the PROC and have it select off the master table. I keep getting "Select permission denied on Master.dbo.SysCacheObjects Table" messages.

    So to recap, I have a PROC in my app DB that selects from the MASTER syscacheobjects table. How should I set up the permissions to prevent the general app SQL login account from getting select permissions to the MASTER table?

    Thanks,

    George H.

  • Did you try to grant SELECT permission to PUBLIC?

  • Well, what I ended up doing is created a new role in the master db, then added my app's login to that role, then gave that role only select permissions on the syscacheobjects table. I didn't want to give it to public (I'm kinda paranoid about giving out permissions to the public role).

    I just wasn't sure if there was a generally accepted secure way to do this.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply