Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.3 KB

File metadata and controls

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