--- title: "setSavepoint Method (SQLServerConnection) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual apiname: - "SQLServerConnection.setSavepoint" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: c39c6b4f-b9e2-423b-94ae-9f82d9e6d08d author: David-Engel ms.author: v-daenge --- # setSavepoint Method (SQLServerConnection) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Creates an unnamed savepoint in the current transaction and returns the new [SQLServerSavepoint](../../../connect/jdbc/reference/sqlserversavepoint-class.md) object that represents it. ## Overload List |Name|Description| |----------|-----------------| |[setSavepoint ()](../../../connect/jdbc/reference/setsavepoint-method.md)|Creates an unnamed savepoint in the current transaction and returns the new [SQLServerSavepoint](../../../connect/jdbc/reference/sqlserversavepoint-class.md) object that represents it.| |[setSavepoint (java.lang.String)](../../../connect/jdbc/reference/setsavepoint-method-java-lang-string.md)|Creates a savepoint with the given name in the current transaction and returns the new [SQLServerSavepoint](../../../connect/jdbc/reference/sqlserversavepoint-class.md) object that represents it.| ## See Also [SQLServerConnection Members](../../../connect/jdbc/reference/sqlserverconnection-members.md) [SQLServerConnection Class](../../../connect/jdbc/reference/sqlserverconnection-class.md)