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?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!

×