getWarnings Method (SQLServerConnection)

Retrieves the first warning reported by calls on this SQLServerConnection object.

public java.sql.SQLWarning getWarnings()

返回值

A SQLWarning object.

异常

SQLServerException

备注

This getWarnings method is specified by the getWarnings method in the java.sql.Connection interface.

Subsequent warnings are chained to the first SQLWarning and called with the getNextWarning method. If called on a closed connection, an exception will be thrown.

另请参见

参考

SQLServerConnection Class

概念

SQLServerConnection Methods
SQLServerConnection Members