Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.77 KB

File metadata and controls

38 lines (31 loc) · 1.77 KB
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
SQLServerCallableStatement.getBytes
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid b6e88cea-54b3-4d18-a9af-db54abf19f45
author David-Engel
ms.author v-daenge

getBytes Method (SQLServerCallableStatement)

[!INCLUDEDriver_JDBC_Download]

Retrieves the value of the designated parameter as an array of bytes.

Overload List

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.

Remarks

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.

See Also

SQLServerCallableStatement Members
SQLServerCallableStatement Class