Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.3 KB

getwarnings-method-sqlserverconnection.md

File metadata and controls

41 lines (30 loc) · 1.3 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic apilocation apiname apitype
getWarnings Method (SQLServerConnection)
getWarnings Method (SQLServerConnection)
David-Engel
davidengel
01/19/2017
sql
connectivity
reference
sqljdbc.jar
SQLServerConnection.getWarnings
Assembly

getWarnings Method (SQLServerConnection)

[!INCLUDEDriver_JDBC_Download]

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

Syntax

  
public java.sql.SQLWarning getWarnings()  

Return Value

A SQLWarning object.

Exceptions

SQLServerException

Remarks

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.

See Also

SQLServerConnection Members
SQLServerConnection Class