Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 92505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:11:51+00:00 2026-05-10T23:11:51+00:00

I have a SQL Server 2005 database that I’m trying to access as a

  • 0

I have a SQL Server 2005 database that I’m trying to access as a limited user account, using Windows authentication. I’ve got BUILTIN\Users added as a database user (before I did so, I couldn’t even open the database). I’m working under the assumption that everybody is supposed to have permissions for the ‘public’ role applied to them, so I didn’t do anything with role assignment. Under tblFoo, I can use the SSMS Properties dialog (Permissions page) to add ‘public’, then set explicit permissions. Among these is ‘Grant’ for SELECT. But running

SELECT * from tblFoo; 

as a limited (BUILTIN\Users) account gives me an error ‘Select permission denied on object ‘tblFoo’, database ‘bar’, schema ‘dbo”. In the properties dialog, there’s an ‘Effective Permissions button, but it’s greyed out.

Further, I tried creating a non-priv account called ‘UserTest’, adding that at the server level, then mapping it down to the ‘bar’ database. This let me add UserTest to the ‘Users or Roles’ list, which let me run ‘Effective Permissions’ for the account. No permissions are listed at all — this doesn’t seem right. The account must be in public, and public grants (among other things) Select on tblFoo, so why doesn’t the UserTest account show an effective permission? I feel like I’m going a bit crazy here.

ASIDE: I am aware that many people don’t like using the ‘public’ role to set permissions. This is just my tinkering time; in final design I’m sure we’ll have several flexible (custom) database roles. I’m just trying to figure out the behavior I’m seeing, so please no ‘don’t do that!’ answers.

UPDATE: Apparently I know just enough SQL Server to be a danger to myself and others. In setting permissions (as I said, ‘among others’), I had DENY CONTROL. When I set this permission, I think I tried to look up what it did, had a vague idea, and decided on DENY. I cannot currently recall why this seemed the thing to do, but it would appear that that was the reason I was getting permission failures. So I’m updating my question: can anyone explain the ‘CONTROL’ permission, as it pertains to tables?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:11:51+00:00Added an answer on May 10, 2026 at 11:11 pm

    You only need to have SELECT rights. In raw SQL (see the ‘script’ icon/button in your dialogue box), it’s GRANT SELECT ON dbo.tblFoo to public. This is the only permission needed to view the data,

    In this case, the error message explicitly mentions ‘deny’. ‘DENY’ is a right in itself, so it mentions it,

    If you had no rights, you’d get the message (very approximately) ‘tblFoo does not exist or you do not have rights’

    ‘DENY CONTROL’ is mentioned here. In this case, you denied all rights to the public role.

    The grantee effectively has all defined permissions on the securable

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Are you running on OS 3.0? I saw the same… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer It looks like you need to register Apache::Session::Memcached with Apache::Session::Wrapper,… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer Use DATENAME or DATEPART: SELECT DATENAME(dw,GETDATE()) -- Friday SELECT DATEPART(dw,GETDATE())… May 12, 2026 at 1:19 am

Related Questions

I have a SQL Server 2005 database that I'm trying to access as a
I have a SQL Server 2005 database that is linked to an Oracle database.
We have a Microsoft SQL Server 2005 database that needs to be converted back
I have a SQL Server 2005 database that is suffering from lock starvation because
I have a SQL Server 2005 database that has been deleted, and I need

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.