Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.47 KB

File metadata and controls

49 lines (37 loc) · 1.47 KB
title setReadOnly 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.setReadOnly
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid bd11fd50-f092-43a0-a6bc-c63e70cff8da
author David-Engel
ms.author v-daenge

setReadOnly Method (SQLServerConnection)

[!INCLUDEDriver_JDBC_Download]

Puts this SQLServerConnection object in read-only mode as a hint to the JDBC driver to enable database optimizations.

Note

This method is not supported by the [!INCLUDEjdbcNoVersion].

Syntax

  
public void setReadOnly(boolean readOnly)  

Parameters

readOnly

true if the connection is to be read-only. Otherwise, false.

Exceptions

SQLServerException

Remarks

This setReadOnly method is specified by the setReadOnly method in the java.sql.Connection interface.

See Also

SQLServerConnection Members
SQLServerConnection Class