--- title: "execute Method (SQLServerStatement) | 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: - "SQLServerStatement.execute" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: e1367f39-23d7-4e26-b160-6d988d7e6988 author: David-Engel ms.author: v-daenge --- # execute Method (SQLServerStatement) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Runs the given SQL statement, which can return multiple results. ## Overload List |Name|Description| |----------|-----------------| |[execute (java.lang.String)](../../../connect/jdbc/reference/execute-method-java-lang-string-sqlserverstatement.md)|Runs the given SQL statement, which can return multiple results.| |[execute (java.lang.String, int)](../../../connect/jdbc/reference/execute-method-java-lang-string-int.md)|Runs the given SQL statement, which can return multiple results, and signals to [!INCLUDE[jdbcNoVersion](../../../includes/jdbcnoversion_md.md)] that any auto-generated keys should be made available for retrieval.| |[execute (java.lang.String, int[])](../../../connect/jdbc/reference/execute-method-java-lang-string.md)|Runs the given SQL statement, which can return multiple results, and signals the JDBC driver that the auto-generated keys that are indicated in the given array should be made available for retrieval.| |[execute (java.lang.String, java.lang.String[])](../../../connect/jdbc/reference/execute-method-java-lang-string-java-lang-string.md)|Runs the given SQL statement, which can return multiple results, and signals the JDBC driver that the auto-generated keys that are indicated in the given array should be made available for retrieval.| ## See Also [SQLServerStatement Members](../../../connect/jdbc/reference/sqlserverstatement-members.md) [SQLServerStatement Class](../../../connect/jdbc/reference/sqlserverstatement-class.md)