Microsoft KB Archive/315559

= FIX: ESQL/C Precompiler May Cause Access Violation When It Processes a Complex ESQL Project =

Article ID: 315559

Article Last Modified on 10/11/2005

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition
 * Microsoft SQL Server 7.0 Standard Edition

-



This article was previously published under Q315559



BUG #: 351624 (SHILOH_BUGS)

BUG #: 102196 (SQLBUG_70)



SYMPTOMS
When the ESQL/C precompiler processes a complex ESQL project, the precompiler may generate an Access Violation (AV) and the following error messages may occur:

SQL Server 2000

The instruction at &quot;0x0040defe&quot; referenced memory at &quot;XXXX&quot;. The memory could not be &quot;read&quot;.

SQL Server 7.0

The instruction at &quot;0x0040df70&quot; referenced memory at &quot;XXXX&quot;. The memory could not be &quot;read&quot;.

Note: The address of the offending instructions (0x0040defe and 0x0040df70) are always the same. However, the target address (XXXX) may differ.



RESOLUTION
SQL Server 2000 A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:   Date            Time      Version      Size             File name -

15-Dec-2001    02:22     8.00.556     135,168 bytes    Nsqlprep.exe Note: Because of file dependencies, the most recent hotfix or feature that contains the files may also contain additional files.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
Please note that ESQL/C is based on DB-Library. The following paragraph in the &quot;DB-Library API&quot; topic of SQL Server Books Online also applies to ESQL/C:

&quot;The DB-Library API has not been enhanced beyond the level of SQL Server version 6.5. All DB-Library applications can work with SQL Server 2000, but only as 6.5 level clients. Features introduced in SQL Server 2000 and SQL Server version 7.0 are not supported for DB-Library applications.&quot;

Also, note section 7.0 of the Sp2readme.htm provided with SQL Server 2000 Service Pack 2:

7.0 DB-Library and Embedded SQL for C

While the DB-Library and Embedded SQL for C application programming interfaces (APIs) are still supported in SQL Server 2000, no future versions of SQL Server will include the files needed to do programming work on applications that use these APIs. Connections from existing applications written using DB-Library and Embedded SQL for C will still be supported in the next version of SQL Server, but this support will also be dropped in a future release. When writing new applications, avoid using these components. When modifying existing applications, you are strongly encouraged to remove dependencies on these technologies. Instead of DB-Library or Embedded SQL for C, you can use ADO, OLE DB, or ODBC to access data in SQL Server. Please refer to SQL Server Books Online for more information on these technologies.

Keywords: kbbug kbfix kbqfe kbhotfixserver KB315559

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.