Condividi tramite


setAsciiStream Method (java.lang.String, java.io.InputStream, int) (SQLServerCallableStatement)

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

public void setAsciiStream(java.lang.String parameterName,
                           java.io.InputStream value,
                           int length)

Parametri

parameterName

A String that contains the parameter name.

value

An InputStream object.

length

An int that indicates the length in number of bytes.

Eccezioni

SQLServerException

Osservazioni

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

If the length of the stream is different than that specified in the length parameter, the JDBC driver throws an exception when the row is updated or inserted.

If the length of the stream is unknown, the length parameter may be set to -1 to indicate that the driver should accept the stream regardless of its length. With sqljdbc4.jar, we recommend that you use the JDBC 4.0 method setAsciiStream Method (java.lang.String, java.io.InputStream) when the application wants to update the column from a stream whose length is unknown.

Vedere anche

Riferimento

SQLServerCallableStatement Class

Concetti

SQLServerCallableStatement Methods
SQLServerCallableStatement Members