Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.35 KB

setreadonly-method-sqlserverconnection.md

File metadata and controls

44 lines (32 loc) · 1.35 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic apilocation apiname apitype
setReadOnly Method (SQLServerConnection)
setReadOnly Method (SQLServerConnection)
David-Engel
davidengel
01/19/2017
sql
connectivity
reference
sqljdbc.jar
SQLServerConnection.setReadOnly
Assembly

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