BUG: ESQLC Unhandled AV in Sqlakw32.dll Connecting to SQL Server

ID: Q197051


The information in this article applies to:
  • Microsoft SQL Server version 6.5

BUG #: 18357 (SQLBUG_65)

SYMPTOMS

If a "DEBUG" build is performed of an ESQL/C application that uses the "Edit and Continue" technology introduced by Microsoft Visual C++ 6.0, an unhandled access violation (AV) may be encountered in Sqlakw32.dll when the application attempts to connect to the SQL Server using the EXEC SQL CONNECT TO statement.


WORKAROUND

To work around this problem, disable the "Edit and Continue" functionality of the application by doing either of the following:

  • If you are performing a "DEBUG" build of your application from the command line, change the /ZI compiler option to /Zi.


  • -or-

  • If you are building your application using the Microsoft Visual Studio or Microsoft Visual C++ IDE, perform the following steps:

    1. On the Project menu, click Settings to open the Build Settings for your project.


    2. On the C/C++ tab, set Category to General.


    3. Also on the C/C++ tab, change the Debug Info option from Program Database For Edit And Continue to Program Database.




Both of these methods disable the "Edit and Continue" functionality of the application, but still allow the project to be step debugged.


STATUS

Microsoft has confirmed this to be a problem in SQL Server version 6.5.

Additional query words: ESQLC Embedded

Keywords : SSrvProg kbbug6.50
Version : winnt:6.5
Platform : winnt
Issue type : kbbug


Last Reviewed: December 14, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.