ij Commands and Errors Reference,
Page 26 of 37


[top]
[prev]
[next]
Documentation Top
Index for This Book

Absolute
After Last
Async
Autocommit
Before First
Close
Commit
Connect
Disconnect
Driver
Elapsedtime
Execute
Exit
First
Get Cursor
Get Scroll Insensitive Cursor
Help
Last
MaximumDisplayWidth
Next
Prepare
Previous
Protocol
Readonly
Relative
Remove
Rollback
Run
Set Connection
Show Connections
Wait For

Readonly

Syntax

READONLY { ON | OFF }

Description

Sets the current connection to a “read-only” connection, as if the current user were defined as a readOnlyAccess user. (For more information about database authorization, see the Cloudscape Developer’s Guide.)

NEW: This command is new in Version 3.0.

Example

 ij> connect 'jdbc:cloudscape:toursDB';
 ij> readonly on;
 ij> SELECT * FROM menu;
 COURSE    |ITEM                |PRICE
 -----------------------------------------------
 entree    |lamb chop           |14
 dessert   |creme brulee        |6
 appetizer |baby greens         |7
 entree    |lamb chop           |14
 entree    |lamb chop           |14
 dessert   |creme brulee        |6
 6 rows selected
 ij> UPDATE menu set price = 3;
 ERROR 25502: An SQL data change is not permitted for a read-only connection, user or database.
[top]
[prev]
[next]


Cloudscape Version 3.0
For technical support, go to: www.cloudscape.com and click Support.
Copyright © 1998 and 1999 Cloudscape, Inc. All rights reserved.