Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms

Assume that you have select permission on the table that has non-dbo schema in Microsoft SQL Server 2012 or SQL Server 2014. When you query from the sys.column_store_segments view, the column has_nulls, base_id, magnitude, min_data_id, max_data_id, and null_value shows NULL value.

Note

  • The sys.column_store_segments view performs the security check by using the following function:

    HAS_PERMS_BY_NAME ( securable , securable_class , permission  
    [ , sub-securable ] [ , sub-securable_class ] )
  • The column has_nulls, base_id, magnitude, min_data_id, max_data_id, and null_value returns NULL value unless the user has select permission.

Cause

The issue occurs because the security check of the view does not consider the non-dbo schema. Therefore, even though you have select permission on the table with non-dbo schema, you still receive NULL value from the view.

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×