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

  • Home
  • SEARCH
  • 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 982381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:41:14+00:00 2026-05-16T04:41:14+00:00

I have a series of stored procedures that select data from a db. I

  • 0

I have a series of stored procedures that select data from a db. I have a role (cctc_reader) that has execute permissions granted on the procedures. One of the procedure calls another stored procedure called recControl_system_option which in turn queries Information_schema.columns.

The problem is that in this proc the query

select column_name from information_schema.columns where table_name = 'recControl_manager'

does not return any records. cctc_reader has grant permissions on:

  • each select proc
  • recControl_system_option

so in theory this should work. I have no problems when run under dbo.

If I grant db_datareader to cctc_reader the query is fine, but I don’t want to grant reader permissions to all tables (hence why I used stored procs). I’ve tried granting Select permissions on Information_schema in the Master db as suggested in some articles, but still can’t get this to work.

Any suggestions?

  • 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. Editorial Team
    Editorial Team
    2026-05-16T04:41:15+00:00Added an answer on May 16, 2026 at 4:41 am

    Objects metadata visibility is subject to the VIEW DEFINITION permission:

    GRANT VIEW DEFINITION ON ... TO cctc_reader;
    

    The VIEW DEFINITION permission lets a
    user see the metadata of the securable
    on which the permission is granted.
    However, VIEW DEFINITION permission
    does not confer access to the
    securable itself. For example, a user
    that is granted only VIEW DEFINITION
    permission on a table can see metadata
    related to the table in the
    sys.objects catalog view. However,
    without additional permissions such as
    SELECT or CONTROL, the user cannot
    read data from the table.

    The right securable to grant permission to depends on your scenario. It could be the dbo or some other schema, it could be the database itself, it could be individual tables. If I was in your place, I’d code sign the recControl_system_option procedure and I’d grant VIEW ANY DEFINITION on the signature at server level, a much better and secure way that using roles and granting permission on roles. See Signing an activated procedure for an example of how to sign a procedure and grant a server level permission on the signature.

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

Sidebar

Related Questions

I have a series of listviews that are generated from data stored in an
I have a series of divs that slide down using -webkit-transform from a negative
I have a series of images stored in a MySQL database that I am
I have a series of queries in a stored procedure that are connected with
We have a lengthy ETL process that flows data from input files through a
I have a data frame containing multiple time series of returns, stored in columns.
I have a Python program that runs a series of experiments, with no data
I'm writing a stored procedure to copy data from one user's table to another
I have a Stored Procedure that rolls-back a series of operations. I want to
Well I have a series of sps that are running a data warehousing solution

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.