My Oracle Support Banner

After Upgrading To SQL Server 2012, OBIEE/ OAS Fails With 'nQSError 16001 Incorrect syntax near..' (Doc ID 1955034.1)

Last updated on NOVEMBER 29, 2023

Applies to:

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

Symptoms

Using 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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.