通过 JDBC 驱动程序执行事务Performing transactions with the JDBC driver

下载下载 JDBC 驱动程序DownloadDownload JDBC Driver

对于所有必须保证其永久性数据的一致性的应用程序而言,事务处理是必需要求。Transaction processing is a mandatory requirement of all applications that must guarantee consistency of their persistent data. 通过 Microsoft JDBC Driver for SQL ServerMicrosoft JDBC Driver for SQL Server,可以在本地或以分散的方式执行事务处理。With the Microsoft JDBC Driver for SQL ServerMicrosoft JDBC Driver for SQL Server, transaction processing can either be performed locally or distributed. 事务是原子级的、一致的、孤立的和持久的 (ACID) 执行模型。Transactions are atomic, consistent, isolated, and durable (ACID) modules of execution.

本节中的主题介绍 JDBC 驱动程序如何支持包括隔离级别、事务保存点和结果集保持能力在内的事务。The topics in this section describe how the JDBC driver supports transactions including isolation levels, transaction savepoints, and result set holdability.

在本节中In this section

主题Topic 说明Description
了解事务Understanding transactions 提供了如何通过 JDBC 驱动程序执行事务的概述。Provides an overview of how transactions are used with the JDBC driver.
了解 XA 事务Understanding XA transactions 提供了如何通过 JDBC 驱动程序执行 XA 事务的概述。Provides an overview of how XA transactions are used with the JDBC driver.
了解隔离级别Understanding isolation levels 介绍了 JDBC 驱动程序所支持的多种隔离级别。Describes the various isolation levels that are supported by the JDBC driver.
使用保存点Using savepoints 介绍了如何结合事务保存点使用 JDBC 驱动程序。Describes how to use the JDBC driver with transaction savepoints.
使用可保持性Using holdability 介绍了如何结合结果集保持能力使用 JDBC 驱动程序。Describes how to use the JDBC driver with result set holdability.

另请参阅See also

JDBC 驱动程序概述Overview of the JDBC driver