@@ -3,7 +3,7 @@ title: "prepareStatement Method (java.lang.String, int[])"
33description : " prepareStatement Method (java.lang.String, int[])"
44author : David-Engel
55ms.author : davidengel
6- ms.date : " 01/19/2017 "
6+ ms.date : " 01/22/2026 "
77ms.service : sql
88ms.subservice : connectivity
99ms.topic : reference
@@ -12,19 +12,20 @@ apiname: "SQLServerConnection.prepareStatement (java.lang.String, int[])"
1212apitype : " Assembly"
1313---
1414# prepareStatement Method (java.lang.String, int[ ] )
15+
1516[ !INCLUDE[ Driver_JDBC_Download] ( ../../../includes/driver_jdbc_download.md )]
1617
1718 Creates a [ SQLServerPreparedStatement] ( ../../../connect/jdbc/reference/sqlserverpreparedstatement-class.md ) object for sending parameterized SQL statements to the database, and that is capable of returning the auto-generated keys designated by the given array.
1819
1920## Syntax
2021
21- ```
22-
22+ ``` java
2323public java.sql. PreparedStatement prepareStatement(java.lang. String sql,
2424 int [] columnIndexes)
2525```
2626
27- #### Parameters
27+ #### Parameters
28+
2829 * sql*
2930
3031 A ** String** that contains a SQL statement.
@@ -33,18 +34,20 @@ public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
3334
3435 An array of ints.
3536
36- ## Return Value
37+ ## Return Value
38+
3739 A PreparedStatement object.
3840
39- ## Exceptions
41+ ## Exceptions
42+
4043 [ SQLServerException] ( ../../../connect/jdbc/reference/sqlserverexception-class.md )
4144
42- ## Remarks
43- This prepareStatement method is specified by the prepareStatement method in the java.sql.Connection interface.
44-
45- ## See Also
46- [ prepareStatement Method ( ; SQLServerConnection) ; ] ( ../../../connect/jdbc/reference/preparestatement-method-sqlserverconnection.md )
47- [ SQLServerConnection Members] ( ../../../connect/jdbc/reference/sqlserverconnection-members.md )
48- [ SQLServerConnection Class] ( ../../../connect/jdbc/reference/sqlserverconnection-class.md )
49-
45+ ## Remarks
46+
47+ This prepareStatement method is specified by the prepareStatement method in the java.sql.Connection interface.
5048
49+ ## Related content
50+
51+ - [ prepareStatement Method ( ; SQLServerConnection) ; ] ( ../../../connect/jdbc/reference/preparestatement-method-sqlserverconnection.md )
52+ - [ SQLServerConnection Members] ( ../../../connect/jdbc/reference/sqlserverconnection-members.md )
53+ - [ SQLServerConnection Class] ( ../../../connect/jdbc/reference/sqlserverconnection-class.md )
0 commit comments