共用方式為


setSavepoint Method (java.lang.String)

Creates a savepoint with the given name in the current transaction, and returns the new SQLServerSavepoint object that represents it.

public java.sql.Savepoint setSavepoint(java.lang.String sName)

參數

sName

A String value that contains the name of the savepoint.

傳回值

A SavePoint object.

例外狀況

SQLServerException

備註

This setSavePoint method is specified by the setSavePoint method in the java.sql.Connection interface.

The sName argument is automatically escaped by the Microsoft SQL Server 2005 JDBC Driver.

另請參閱

參考

SQLServerConnection Class

概念

setSavepoint Method (SQLServerConnection)
SQLServerConnection Methods
SQLServerConnection Members