다음을 통해 공유


setAsciiStream Method (SQLServerPreparedStatement)

Sets the designated parameter number to the given InputStream object with the given number of bytes.

public final void setAsciiStream(int n,
                                 java.io.InputStream x,
                                 int length)

매개 변수

n

An int that indicates the parameter number.

x

An InputStream object.

length

The number of bytes.

예외

SQLServerException

주의

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

When the length 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.

참고 항목

참조

SQLServerPreparedStatement Class

개념

SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members