--- title: "end Method (SQLServerXAResource) | 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: - "SQLServerXAResource.end" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: e6418b27-793b-4b36-8dfb-756aec7bcbba author: David-Engel ms.author: v-daenge --- # end Method (SQLServerXAResource) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Ends the work performed on behalf of a transaction branch. ## Syntax ``` public void end(javax.transaction.xa.Xid xid, int flags) ``` #### Parameters *xid* An Xid object. *flags* An **int** value. ## Exceptions javax.transaction.xa.XAException ## Remarks This end method is specified by the end method in the javax.transaction.xa.XAResource interface. ## See Also [SQLServerXAResource Methods](../../../connect/jdbc/reference/sqlserverxaresource-methods.md) [SQLServerXAResource Members](../../../connect/jdbc/reference/sqlserverxaresource-members.md) [SQLServerXAResource Class](../../../connect/jdbc/reference/sqlserverxaresource-class.md)