FIX: Error message when you use the Transact-SQL LEFT or RIGHT function in a stored procedure in Visual Studio Team System 2008 Database Edition GDR: "An exception was thrown when the 'Maintain compatibility between data types.' rule was applied"

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

SYMPTOMS

Consider the following scenario:
  • You create a Microsoft SQL server database project by using Microsoft Visual Studio Team System 2008 Database Edition GDR.
  • You add a stored procedure that contains a LEFT Transact-SQL function to return the left side of a character string or a RIGHT Transact-SQL function to return the right side of a character string.
  • You click Run in the Static Code Analysis item of the Data menu.
In this scenario, you receive an error message in the Error List window:
An exception was thrown when the 'Maintain compatibility between data types.' rule was applied. The exception text is: ‘TSqlFragment is not the expected Microsoft.Data.Schema.ScriptDom.Sql.FunctionCall’.

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

For more information about the LEFT function, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/ms177601.aspx
For more information about the RIGHT function, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/ms177532.aspx

Properties

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

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