setReadOnly Method (SQLServerConnection)
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 Microsoft JDBC Driver for SQL Server.
Syntax
public void setReadOnly(boolean readOnly)
Parameters
readOnly
true if the connection is to be read-only. Otherwise, false.
Exceptions
Remarks
This setReadOnly method is specified by the setReadOnly method in the java.sql.Connection interface.
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for