Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.74 KB

File metadata and controls

55 lines (41 loc) · 1.74 KB
title prepareStatement Method (java.lang.String, java.lang.String) | 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
SQLServerConnection.prepareStatement
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid e0db2871-3a5f-4fcc-af61-92333042dcd1
author David-Engel
ms.author v-daenge

prepareStatement Method (java.lang.String, java.lang.String)

[!INCLUDEDriver_JDBC_Download]

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

Syntax

  
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,  
                                                   java.lang.String[] columnNames)  

Parameters

sql

A String containing an SQL statement.

columnNames

A String array of column names.

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