| 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 |
|
|
| apilocation |
|
|
| apitype | Assembly | |
| ms.assetid | bd11fd50-f092-43a0-a6bc-c63e70cff8da | |
| author | David-Engel | |
| ms.author | v-daenge |
[!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].
public void setReadOnly(boolean readOnly)
readOnly
true if the connection is to be read-only. Otherwise, false.
This setReadOnly method is specified by the setReadOnly method in the java.sql.Connection interface.