Article ID: 959026 - Last Review: April 7, 2009 - Revision: 2.0 FIX: Error message when you run a DB2 query that uses the WITH UR query hint in SQL Server 2005 Analysis Services and in SQL Server 2008 Analysis Services: "OLE DB error: OLE DB or ODBC error: An unexpected token "WITH" was found following "<Query>""On This PageSYMPTOMSConsider the following scenario. In Microsoft SQL Server 2005 Analysis Services or in Microsoft SQL Server 2008 Analysis Services, you use the Microsoft OLEDB Data Provider for DB2 provider to receive data from a DB2 database. You add the WITH UR query hint in a named query or in a partition query to use the UNCOMMITTED READ isolation level. When you run the query, you receive the following error message that comes from a DB2 syntax error: OLE DB error: OLE DB or ODBC error: An unexpected token "WITH" was found following "<Query>". Expected token may include : ")". SQLSTATE: 42601, SQLCODE: -104; 42601. CAUSEThis issue occurs because the cartridge wraps the query into a subselect statement. The subselect statement results in the syntax error in DB2. RESOLUTIONService pack information for SQL Server 2005To resolve this problem, obtain the latest service pack for SQL Server 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:913089
(http://support.microsoft.com/kb/913089/
)
How to obtain the latest service pack for SQL Server 2005
Service pack information for SQL Server 2008To resolve this problem, obtain the latest service pack for SQL Server 2008. For more information, click the following article number to view the article in the Microsoft Knowledge Base:968382
(http://support.microsoft.com/kb/968382/
)
How to obtain the latest service pack for SQL Server 2008
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in SQL Server 2005 Service Pack 3 for SQL Server 2005. This problem was first corrected in SQL Server 2008 Service Pack 1 for SQL Server 2008. MORE INFORMATIONWe strongly recommend that you do not use the WITH UR query hint in a query because the returned data is in an uncommitted state. Therefore, the data may end up in an inconsistent state in the cube of SQL Server 2005 Analysis Services or in the cube of SQL Server 2008 Analysis Services. This may result in various data integrity problems in the cube. After applies this hotfix, if you want to use the UNCOMMITTED READ isolation level, follow these steps:
824684
(http://support.microsoft.com/kb/824684/LN/
)
Description of the standard terminology that is used to describe Microsoft software updates
| Article Translations
|
Back to the top
