Skip to content

Commit 49b7c82

Browse files
committed
edits
1 parent 1d2d7b6 commit 49b7c82

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

docs/connect/jdbc/reference/preparestatement-method-java-lang-string-int-array.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "prepareStatement Method (java.lang.String, int[])"
33
description: "prepareStatement Method (java.lang.String, int[])"
44
author: David-Engel
55
ms.author: davidengel
6-
ms.date: "01/19/2017"
6+
ms.date: "01/22/2026"
77
ms.service: sql
88
ms.subservice: connectivity
99
ms.topic: reference
@@ -12,19 +12,20 @@ apiname: "SQLServerConnection.prepareStatement (java.lang.String, int[])"
1212
apitype: "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
2323
public 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

Comments
 (0)