| title | getString Method (java.lang.String) |
|---|---|
| description | getString Method (java.lang.String) |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
| apilocation | sqljdbc.jar |
| apiname | SQLServerCallableStatement.getString (java.lang.String) |
| apitype | Assembly |
[!INCLUDEDriver_JDBC_Download]
Retrieves the value of the designated parameter as a String in the Java programming language given the parameter name.
public java.lang.String getString(java.lang.String sCol)
sCol
A String that contains the parameter name.
A String value.
This getString method is specified by the getString method in the java.sql.CallableStatement interface.
All columns in [!INCLUDEssNoVersion] can be returned as a string. This means that a string representation of all number-based and character-based types, and a hex-string representation of binary columns such as binary, varbinary, varbinary(max), image, timestamp, and uniqueidentifier, can be returned.
Location-sensitive types such as money, smallmoney, datetime, smalldatetime, float, real, decimal, and numeric will return the canonical toString() format for the underlying value of the type.
User-defined types are returned as hexadecimal string values.
getString Method (SQLServerCallableStatement)
SQLServerCallableStatement Members
SQLServerCallableStatement Class