FIX: Error message when you define multiple permissions that use INCLUDE or EXCLUDE treatments in Microsoft Visual Studio Team System 2008 Database Edition GDR: "An object can only have either INCLUDE or EXCLUDE treatment on its columns"

Article translations Article translations
Article ID: 970580 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

You have a database project in Microsoft Visual Studio Team System 2008 Database Edition GDR. In the Database.sqlpermissions file, you define multiple permissions that use INCLUDE or EXCLUDE treatments on different columns of the same table or view. However, when you build the project, you receive the following error message in the Error List window:
TSD03110: An object can only have either INCLUDE or EXCLUDE treatment on its columns.

RESOLUTION

To resolve this problem, upgrade to Microsoft Visual Studio Team System 2008 Database Edition GDR R2. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
970479 List of fixed issues in the Microsoft Visual Studio Team System 2008 Database Edition GDR R2

Note Microsoft Visual Studio Team System 2008 Database Edition GDR R2 replaces Microsoft Visual Studio Team System 2008 Database Edition GDR.

STATUS

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

MORE INFORMATION

You experience the problem when you define permissions in the Database.sqlpermissions file that resemble the following:
<PermissionStatement Action="DENY"> 
<Permission>SELECT</Permission>   
<Grantee>User1</Grantee>   
<Object Name="Table1" Schema="dbo" Type="OBJECT">   
<Columns Treatment="EXCLUDE">   
<Column Name="A"/>   
<Column Name="B"/>   
</Columns>         
</Object>  
<Grantor>BedrockDBA</Grantor>  
</PermissionStatement>  

<PermissionStatement Action="DENY">  
<Permission>SELECT</Permission>  
<Grantee>User1</Grantee>  
<Object Name="Table1" Schema="dbo" Type="OBJECT">  
<Columns Treatment="EXCLUDE">  
<Column Name="C"/>  
<Column Name="D"/>  
</Columns>  
</Object>  
</PermissionStatement>

Properties

Article ID: 970580 - Last Review: July 16, 2009 - Revision: 1.0
APPLIES TO
  • Microsoft Visual Studio Team System 2008 Database Edition
Keywords: 
kbexpertiseadvanced kbprb kbsurveynew kbqfe KB970580

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com