Microsoft KB Archive/197051

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

Article ID: 197051

Article Last Modified on 10/3/2003

-

APPLIES TO


 * Microsoft SQL Server 6.5 Standard Edition

-



This article was previously published under Q197051



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:


 * On the Project menu, click Settings to open the Build Settings for your project.
 * On the C/C++ tab, set Category to General.
 * 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: kbbug kbpending KB197051

-

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

© Microsoft Corporation. All rights reserved.