After Upgrading To SQL Server 2012, OBIEE 11g | 12c Fails With 'nQSError 16001 Incorrect syntax near..' (Doc ID 1955034.1)

Last updated on JANUARY 27, 2017

Applies to:

Business Intelligence Suite Enterprise Edition - Version 11.1.1.7.1 and later
Information in this document applies to any platform.

Symptoms

You use native and datadirect drivers (7.0.1) to connect to SQL Server 2012.

While being able to establish connection with the 7.0.1 drivers, the dashboards fail to render results due to the issue of a query containing "SET FMTONLY ON" and "SET FMTONLY OFF" commands. These commands are deprecated in SQL Server 2012

The SQL generated after updating the datadirect driver is erroneous and is throwing the following error message:


State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
[nQSError: 43113] Message returned from OBIS.
[nQSError: 43119] Query Failed:
[nQSError: 16001] ODBC error state: S1000 code: 8180 message: [DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Statement(s) could not be prepared..
[nQSError: 16001] ODBC error state: S1000 code: 102 message: [DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Incorrect syntax near 'XXXXX'..
[nQSError: 16001] ODBC error state: S1000 code: 102 message: [DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Incorrect syntax near 'XXXXX'..
[nQSError: 16001] ODBC error state: S1000 code: 102 message: [DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Incorrect syntax near 'XXXXX'..
[nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)


Changes

Upgraded database from MS SQL 2008 to MS SQL 2012

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms