Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.24 KB

File metadata and controls

49 lines (37 loc) · 1.24 KB
title prepareStatement Method (java.lang.String) | Microsoft Docs
ms.custom
ms.date 02/07/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
SQLServerConnection.prepareStatement (java.lang.String)
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid e825765c-eb55-4800-951b-f3495da36641
author David-Engel
ms.author v-daenge

prepareStatement Method (java.lang.String)

Creates a SQLServerPreparedStatement object for sending parameterized SQL statements to the database.

Syntax

public java.sql.PreparedStatement prepareStatement(java.lang.String sql)

Parameters

sql

A String containing an SQL statement.

Return Value

A PreparedStatement object.

Exceptions

SQLServerException

Remarks

This prepareStatement method is specified by the prepareStatement method in the java.sql.Connection interface.

See Also

prepareStatement Method (SQLServerConnection)

SQLServerConnection Members

SQLServerConnection Class