手动提交模式Manual-Commit Mode

在手动提交模式下, 应用程序必须通过调用SQLEndTran以提交或回滚事务来显式完成事务。In manual-commit mode, applications must explicitly complete transactions by calling SQLEndTran to commit them or roll them back. 这是大多数关系数据库的正常事务模式。This is the normal transaction mode for most relational databases.

ODBC 中的事务不必显式启动。Transactions in ODBC do not have to be explicitly initiated. 相反,只要应用程序开始在数据库上操作,就会隐式开始事务。Instead, a transaction begins implicitly whenever the application starts operating on the database. 如果数据源需要显式事务启动,则每当应用程序执行需要事务的语句并且没有当前事务时,驱动程序都必须提供此方法。If the data source requires explicit transaction initiation, the driver must provide it whenever the application executes a statement requiring a transaction and there is no current transaction.