Share via


executeQuery Method ()

Runs the SQL query in this SQLServerPreparedStatement object and returns the SQLServerResultSet object that is generated by the query.

Syntax

public java.sql.ResultSet executeQuery()

Return Value

A SQLServerResultSet object.

Exceptions

SQLServerException

Remarks

This executeQuery method is specified by the executeQuery method in the java.sql.PreparedStatement interface.

See Also

Reference

SQLServerPreparedStatement Class

Concepts

executeQuery Method (SQLServerPreparedStatement)

SQLServerPreparedStatement Members