--- title: "isReadOnly 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.isReadOnly" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 902fd2c1-05e0-436e-9779-c048cdb8475a author: David-Engel ms.author: v-daenge --- # isReadOnly Method (SQLServerConnection) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Indicates whether this [SQLServerConnection](../../../connect/jdbc/reference/sqlserverconnection-class.md) object is in read-only mode. > [!NOTE] > This method is not currently supported by the [!INCLUDE[jdbcNoVersion](../../../includes/jdbcnoversion_md.md)]. ## Syntax ``` public boolean isReadOnly() ``` ## Return Value **true** if the connection is in read-only mode, **false** if it is not. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This isReadOnly method is specified by the isReadOnly 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)