--- title: "clearWarnings Method (SQLServerConnection) | 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: - "SQLServerConnection.clearWarnings" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: cb911adf-4691-4e57-8fb3-bdd11bef7a2e author: David-Engel ms.author: v-daenge --- # clearWarnings Method (SQLServerConnection) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Clears all warnings reported for this [SQLServerConnection](../../../connect/jdbc/reference/sqlserverconnection-class.md) object. ## Syntax ``` public void clearWarnings() ``` ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This clearWarnings method is specified by the clearWarnings method in the java.sql.Connection interface. ## See Also [SQLServerConnection Members](../../../connect/jdbc/reference/sqlserverconnection-members.md) [SQLServerConnection Class](../../../connect/jdbc/reference/sqlserverconnection-class.md)