Microsoft KB Archive/88692

{|
 * width="100%"|

INF: SqlCursorClose Documentation Incorrect

 * }

Q88692

-

The information in this article applies to:


 * Microsoft SQL Server Programmer's Toolkit, version 4.2

-

SUMMARY
If you use the SqlCursorClose function on a SQLCONN% connection, the Visual Basic application (SQL Server client application) may do one of the following: stop working altogether, cause a general protection fault (GP fault), or behave abnormally.

MORE INFORMATION
The SqlCursorClose documentation on page 129 of the &quot;Programmer's Reference for Visual Basic&quot; incorrectly states:

"Closing a SQLCONN% connection with SqlCursorClose automatically closes all the cursors associated with it."

Do not use SqlCursorClose on a SQLCONN% connection. The SqlClose documentation should state:

"Closing a SQLCONN% connection with SqlClose automatically closes all the cursors associated with it." Additional query words: Functions DB-Lib dblib prtk

Keywords : kbprogramming

Issue type :

Technology : kbSQLServSearch kbAudDeveloper kbSQLServPTK420