Easysoft ODBC-ODBC Bridge

Why doesn't a query return recently inserted data?

Last Reviewed:
8th January 2024

The issue reported to us is: "INSERT statements seem to work OK and an immediate SELECT with the same cursor works to display the data, but when I retry the query the data is gone."

Some ODBC enabled languages have autocommit set to off by default.

There are two options to ensure that INSERT statements are committed to the database.

  1. Ensure that the relevant autocommit flag is switched on in your connection.
  2. Use appropriate commit and rollback methods in your script.

See the following resources for detailed information on how to do this in individual languages:

Applies To

Knowledge Base Feedback

* Did this content help you?
* Please select one option based on your first choice:

(* Required Fields)