setAsciiStream Method (SQLServerCallableStatement)

Sets the designated parameter to the given input stream, which will have the specified number of bytes.

public void setAsciiStream(java.lang.String sCol,
                           java.io.InputStream as,
                           int n)

参数

sCol

A String that contains the parameter name.

as

An InputStream object.

n

An int that indicates the length in number of bytes.

异常

SQLServerException

备注

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

When the length (n) is set to -1, a stream is allowed, but a specific length is not required. If the InputStream passes a stream of a different length than what is specified, the JDBC driver will stop the update while it tries to preserve the connection and the current transaction.

另请参见

参考

SQLServerCallableStatement Class

概念

SQLServerCallableStatement Methods
SQLServerCallableStatement Members