Receiving Ora-28500 Error 'Invalid Cursor State' When Querying Sql*Server 2005 Tables Using Dg4odbc And FreeTDS ODBC Driver

(Doc ID 744636.1)

Last updated on JANUARY 19, 2017

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.1 to 11.2]
Information in this document applies to any platform.
Checked for relevance on 21-Sep-2012.


Using DG4ODBC on Linux x86-64 RHEL5 with FreeTDS 0.82  driver and UnixODBC driver manager to select from Microsoft  SQL*Server 2005 gives the following error on a select using SQLPLUS - 

SQL> select * from table_name@dg4odbc;
select * from table_name@dg4odbc
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[FreeTDS][SQL Server]Invalid cursor state
ORA-02063: preceding 2 lines from DG4ODBC

With the same setup a select from Microsoft SQL*Server 2005 using SQLPLUS works successfully and using ISQL to select from SQL*Server 2005 also works successfully.


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