ACC: SQORA.DLL Does Not Allow Lengthy SQL Statements

ID: Q104452


The information in this article applies to:


SYMPTOMS

Advanced: Requires expert coding, interoperability, and multiuser skills.

When running a query against an ORACLE table, or updating a record in an ORACLE table, the error message

Statement was longer then allowable maximum 2000+ chars

is displayed if the table and field names are very long or the query is very complex.


CAUSE

This is a problem with SQORA.DLL, the ORACLE ODBC Driver.


RESOLUTION

Obtain and install the updated driver, or use queries to do updates, rather than updating records while the ORACLE table is in Datasheet view. The query should yield only the columns to be updated.

For complex queries, reduce the number of tables or joins in the query and reduce the number of fields used or shown in the query.

These workarounds reduce the length of the SQL statements.


STATUS

Microsoft has confirmed this to be a problem in the ORACLE ODBC driver shipped with Microsoft Access versions 1.1 and 2.0 and Visual Basic for Windows version 3.0 - Professional Edition. An updated driver that corrects this specific problem is available from Microsoft.


MORE INFORMATION

Obtaining the Updated Driver


~ ORA110.EXE

   is available for download from the Microsoft Software Library. It
   contains the files indicated in the "Disk Content" section. 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

Q119591 How to Obtain Microsoft Support Files from Online Services



If you are unable to download the file, Microsoft Product Support Services can provide the data on disk, which also includes an updated Btrieve driver.

NOTE: This driver is for use only by registered owners of Microsoft Access versions 1.1 and 2.0 and Visual Basic for Windows version 3.0 - Professional Edition. By installing these files, you are indicating that you own one of these products.

Disk Contents

The following files are found on the disk:

   README.TXT
   BTRV110.DLL
   ORACLE.TXT
   SQORA.DL_
   SQORASTP.DL_
   ODBC.INF
   SETUP.EXE 

NOTE: The SETUP.EXE file is called by the ODBC Control Panel facility. It will not run as a standalone file.

The following two files will actually be updated:

                         Old                     New
                   -------------------------------------------

   SQORA.DLL       Version:  1.00.2816     Version:  1.00.3112
                   Size:  143,600 bytes    Size:  144,096 bytes
                   Date:  4/16/93          Date:  7/12/93

   SQORASTP.DLL    Version:  1.00.2403     Version:  1.00.3106
                   Size:  9,328 bytes      Size:  9,632 bytes
                   Date:  5/7/93           Date:  7/6/93 

The README.TXT file on the disk documents both the changes to the Btrieve and ORACLE drivers and the installation procedures for each.

The third-party products discussed here are manufactured by vendors independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability.

Additional query words: softlib


Keywords          : kb3rdparty kberrmsg kbfile Softlib OdbcOthr 
Version           : 1.0 1.1 2.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: March 26, 1999