Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.35 KB

File metadata and controls

51 lines (38 loc) · 1.35 KB
title setString Method (SQLServerPreparedStatement) | 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
SQLServerPreparedStatement.setString
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 25dabdc9-c60f-485a-87eb-306067964765
author David-Engel
ms.author v-daenge

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