Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.75 KB

File metadata and controls

49 lines (35 loc) · 1.75 KB
title execute Method (java.lang.String)
description execute Method (java.lang.String)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerPreparedStatement.execute (java.lang.String)
apitype Assembly

execute Method (java.lang.String)

[!INCLUDEDriver_JDBC_Download]

Runs the given SQL statement, which can return multiple results.

Syntax

  
public final boolean execute(java.lang.String sql)  

Parameters

sql

A String that contains a SQL statement.

Return Value

true if the statement returns a result set. false if it returns an update count or no result.

Exceptions

SQLServerException

Remarks

This execute method is specified by the execute method in the java.sql.Statement interface.

This method overrides the execute method that is found in the SQLServerStatement class.

Calling this method will result in an exception since the SQL statement for the SQLServerPreparedStatement object is specified when the object is created.

See Also

execute Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Members
SQLServerPreparedStatement Class