Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.23 KB

File metadata and controls

46 lines (33 loc) · 1.23 KB
title setString Method (SQLServerPreparedStatement)
description setString Method (SQLServerPreparedStatement)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerPreparedStatement.setString
apitype Assembly

setString Method (SQLServerPreparedStatement)

[!INCLUDEDriver_JDBC_Download]

Sets the designated parameter to the given String value.

Syntax

  
public final void setString(int index,  
                            java.lang.String str)  

Parameters

index

An int that indicates the parameter number.

str

A String value.

Exceptions

SQLServerException

Remarks

This setString method is specified by the setString method in the java.sql.PreparedStatement interface.

See Also

SQLServerPreparedStatement Members
SQLServerPreparedStatement Class