You can start a database as readonly on the server command line by using the -r server switch or -r database switch, or using the FOR READ ONLY clause on the START DATABASE statement. Examples: dbsrv12 -r foo.db bar.db -- start both foo.db and bar.db databases as read only dbsrv12 foo.db bar.db -r -- start database foo.db normally (read/write) and bar.db as read only START DATABASE 'foo.db' FOR READ ONLY -- start database foo.db as read only using a SQL statement Thanks Mark. Once I typed your command in command window, how do I connect to the db from Sybase Central? On Sybase Central Connect dialog, for Action, I chose "Connect to a running database on this computer", but I do not know Server name. Sorry, I am new to SQL Anywhere.
(06 Mar '12, 21:28)
VMeng
Replies hidden
I just found the answer to my previous question: leave the server name blank, just specify the db name is enough. Thanks Mark.
(06 Mar '12, 21:35)
VMeng
For the record, if a server name is not specified then the server uses the name of the first database specified on the command line as the name for the server.
(07 Mar '12, 08:12)
Mark Culp
|