--- title: "getWarnings Method (SQLServerResultSet) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual apiname: - "SQLServerResultSet.getWarnings" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: eb4339b0-383b-4337-a935-e8ec3f0d4123 author: David-Engel ms.author: v-daenge --- # getWarnings Method (SQLServerResultSet) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Retrieves the first warning reported by calls on this [SQLServerResultSet](../../../connect/jdbc/reference/sqlserverresultset-class.md) object. > [!NOTE] > This method is not currently supported by the [!INCLUDE[jdbcNoVersion](../../../includes/jdbcnoversion_md.md)]. If called this method will always return a null value. ## Syntax ``` public java.sql.SQLWarning getWarnings() ``` ## Return Value An SQLWarning object. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This getWarnings method is specified by the getWarnings method in the java.sql.ResultSet interface. ## See Also [SQLServerResultSet Members](../../../connect/jdbc/reference/sqlserverresultset-members.md) [SQLServerResultSet Class](../../../connect/jdbc/reference/sqlserverresultset-class.md)