Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/169426

From BetaArchive Wiki
Knowledge Base


BUG: Temp SP Generated by SQLPrepare Is Not Dropped

Article ID: 169426

Article Last Modified on 1/4/2000



APPLIES TO

  • Microsoft ODBC Driver for Microsoft SQL Server 2.65



This article was previously published under Q169426

BUG #: 16643 (SQL)

SYMPTOMS

If the SQLSetStmtOption parameter SQL_USE_PROCEDURE_FOR_PREPARE is set to the value SQL_UP_ON_DROP, the temporary stored procedure generated should be dropped upon the SQLFreeStmt call with SQL_DROP. However, the temporary stored procedure generated by SQLPrepare is not dropped until SQLDisconnect if SQLServer execute syntax is used. This may cause the tempdb to fill up.

WORKAROUND

To work around this problem, use the ODBC syntax (for example, {call sp1}).

STATUS

Microsoft has confirmed this to be a problem in the Microsoft SQL Server ODBC driver version 2.65. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: 2.65.0240

Keywords: kbbug kbprogramming KB169426