| title | getBytes Method (SQLServerCallableStatement) | 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 |
|
|
| apilocation |
|
|
| apitype | Assembly | |
| ms.assetid | b6e88cea-54b3-4d18-a9af-db54abf19f45 | |
| author | David-Engel | |
| ms.author | v-daenge |
[!INCLUDEDriver_JDBC_Download]
Retrieves the value of the designated parameter as an array of bytes.
| Name | Description |
|---|---|
| getBytes (int) | Retrieves the value of the designated parameter as an array of bytes value given the parameter index. |
| getBytes (java.lang.String) | Retrieves the value of the designated parameter as an array of bytes value given the parameter name. |
In a previous version of the [!INCLUDEjdbcNoVersion], you could use SQLServerCallableStatement.getBytes to convert values between byte arrays and [!INCLUDEssNoVersion] data type date, time, datetime2, or datetimeoffset. Now, using this method with those data types will cause an exception indicating that the conversion is not supported.
SQLServerCallableStatement Members
SQLServerCallableStatement Class