--- title: "setUnicodeStream 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.setUnicodeStream" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 0a413e83-e0a4-41f8-9fe0-33ce4d368ee4 author: David-Engel ms.author: v-daenge --- # setUnicodeStream Method (SQLServerPreparedStatement) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Sets the designated parameter number to the given input stream, which will have the specified number of bytes. > [!NOTE] > This method has been deprecated from the JDBC specification, and calling it will cause a "not implemented" exception to be thrown. ## Syntax ``` public final void setUnicodeStream(int n, java.io.InputStream x, int length) ``` #### Parameters *n* An **int** that indicates the parameter number. *x* An InputStream object. *length* The number of bytes. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This setUnicodeStream method is specified by the setUnicodeStream method in the java.sql.PreparedStatement interface. ## See Also [SQLServerPreparedStatement Members](../../../connect/jdbc/reference/sqlserverpreparedstatement-members.md) [SQLServerPreparedStatement Class](../../../connect/jdbc/reference/sqlserverpreparedstatement-class.md)