| title | prepareStatement Method (java.lang.String, int[]) | 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 |
|
|
| apilocation |
|
|
| apitype | Assembly | |
| ms.assetid | 72b5c4a5-1382-4b2c-80a0-47c97c5f52d3 | |
| author | David-Engel | |
| ms.author | v-daenge |
[!INCLUDEDriver_JDBC_Download]
Creates a SQLServerPreparedStatement object for sending parameterized SQL statements to the database, and that is capable of returning the auto-generated keys designated by the given array.
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int[] columnIndexes)
sql
A String that contains an SQL statement.
columnIndexes
An array of ints.
A PreparedStatement object.
This prepareStatement method is specified by the prepareStatement method in the java.sql.Connection interface.
prepareStatement Method (SQLServerConnection)
SQLServerConnection Members
SQLServerConnection Class