RE: setReadOnly(true) with SQL Server 2005 JDBC Driver v1.0 released



Our driver exposes this call to conform to the JDBC specification. However, SQL Server does support read-only connections, so this call will always return
false. To be clearer, the documentation should probably say something like "not supported by SQL Server".

Evan
--------------------
Thread-Topic: setReadOnly(true) with SQL Server 2005 JDBC Driver v1.0 released
thread-index: AcbKg0fyrSN0L/fEQR2BKom3AP0a7Q==
X-WBNR-Posting-Host: 194.55.212.71
From: =?Utf-8?B?cm9sbGU=?= <rolle@xxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: setReadOnly(true) with SQL Server 2005 JDBC Driver v1.0 released
Date: Mon, 28 Aug 2006 02:21:02 -0700
Lines: 13
Message-ID: <4B9A431C-0F14-49E4-9FB9-4DDFA14936BC@xxxxxxxxxxxxx>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 8bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
Newsgroups: microsoft.public.sqlserver.jdbcdriver
Path: TK2MSFTNGXA01.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.jdbcdriver:8049
NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
X-Tomcat-NG: microsoft.public.sqlserver.jdbcdriver

Hello,

I try to set the readOnly-Flag of a connection by calling the method
connection.setReadOnly(true);

This doesn´t seem to work because the method connection.isReadOnly() then
always returns false. (Also read in the docs that these methods are not
"currently" supported - whatever this means...?!)

Is there a way to set (and get) the readOnly-Flag in an other way?

Cheers,
rolle



--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.

.



Relevant Pages

  • RE: Configuration parameter in SQL database
    ... Welcome to Microsoft Newsgroup Support Service! ... how to store&return the configuration ... SQL Server + SQL Dependency Cache ...
    (microsoft.public.dotnet.general)
  • RE: Connection Open Exemptions
    ... If the user can log into SQL server using QA, ... The user account can be either Windows account or SQL account. ... that you open a Support incident with Microsoft Product Support Services ...
    (microsoft.public.sqlserver.connect)
  • Re: Install of KB921896 fails with 0x643 and corrupts my SQL Server.
    ... Support for Windows Update: ... support for security updates is available through your usual support contacts. ... I saw that SQL Server had been failing for a few minutes nearly ... Updates had been unsuccessfully attempting to install KB921896 (SQL Server ...
    (microsoft.public.windowsupdate)
  • RE: Transmitting/Receiving Data via MS Access/ADO
    ... Microsoft Online Community Support ... Thank you for contacting Microsoft Online Community Support. ... to SQL Server via ADO, the information can't be read from the SQL Server ... an MS Access database via ADO in detail. ...
    (microsoft.public.sqlserver.security)
  • RE: Non initialized Cmd Parameter Collection via ASP vs SQL Server
    ... component to access database and execute some stored procedure. ... error when change the database from SQL server 2000 to SQL Server 2005, ... Microsoft MSDN Online Support Lead ... Delighting our customers is our #1 priority. ...
    (microsoft.public.data.ado)

Loading