Results 1 to 2 of 2

Thread: ODBC Prepared Statement and triggers

  1. #1
    Join Date
    Nov 2002
    Posts
    1

    ODBC Prepared Statement and triggers

    I have an application which uses ODBC to insert, update, delete records in an MSSQL DB. The application uses prepared statements and keeps the odbc statement handles to execute the same statement multiple times.
    This application works fine until triggers are introduced. The triggers are pretty simple and take the inserted, updated record and insert this information into another table.
    If we change the application to not re-use the prepared statement handle, by closing the statement handle after each execute, it also works fine. (However, this results in bad performance.)

    The error message is: "[ODBC SQL Server Driver]Connection is busy with results for another hstmt". If anyone has any information on this, I would greatly appreciate the help!!!

    Thank you.
    Christine

  2. #2
    Join Date
    Nov 2002
    Location
    Chicopee, MA
    Posts
    12

    ODBC Connections

    Try this making sure that the configuration option for nested triggers is set to 1.
    Steve Jimmo
    DBA
    Sybase, MS SQL Server

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •