Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.61 KB

setstring-method-sqlservercallablestatement.md

File metadata and controls

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

setString Method (SQLServerCallableStatement)

[!INCLUDEDriver_JDBC_Download]

Sets the designated parameter to the given Java String value.

Syntax

  
public void setString(java.lang.String sCol,  
                      java.lang.String s)  

Parameters

sCol

A String that contains the name of the parameter.

s

A String value.

Exceptions

SQLServerException

Remarks

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

String to binary conversions are performed only when [!INCLUDEjdbcNoVersion] knows the destination type is binary. In cases where the JDBC driver does not know the underlying type, it will pass the String literal and return a server error if the server cannot perform the conversion.

See Also

SQLServerCallableStatement Members
SQLServerCallableStatement Class