Hi Panjay,
This looks like a bug. Open an incident so we can file a bug
1> sp_dboption pubs2,'read only',true
2> go
Database option 'read only' turned ON for database 'pubs2'.
Running CHECKPOINT on database 'pubs2' for option 'read only' to take effect.
(return status = 0)
1> sp_configure 'enable dump history'
2> go
Parameter Name
Default Memory Used
Config Value
Run Value
Unit Type
---------------------------------------------------------------------------------------------------------------------------------
----------- -----------
-------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------
-------------------- --------------------
enable dump history
0 0
0
0
switch dynamic
(1 row affected)
(return status = 0)
1> sp_configure 'enable dump history',1
2> go
Parameter Name
Default Memory Used
Config Value
Run Value
Unit Type
---------------------------------------------------------------------------------------------------------------------------------
----------- -----------
-------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------
-------------------- --------------------
enable dump history
0 0
1
1
switch dynamic
(1 row affected)
Configuration option changed. ASE need not be rebooted since the option is
dynamic.
Changing the value of 'enable dump history' does not increase the amount of
memory Adaptive Server uses.
(return status = 0)
1> dump database pubs2 to 'c:\sybase\data\pubs2.dmp'
2> go
Backup Server: 4.172.1.4: The value of 'allocated pages threshold' has been set
to 40%.
Backup Server session id is: 6. Use this value when executing the
'sp_volchanged' system stored procedure after fulfilling any volume change
request from the Backup Server.
Backup Server: 4.41.1.1: Creating new disk file c:\sybase\data\pubs2.dmp.
Backup Server: 6.28.1.1: Dumpfile name 'pubs2160830E36A ' section number 1
mounted on disk file 'c:\sybase\data\pubs2.dmp'
Backup Server: 4.188.1.1: Database pubs2: 788 kilobytes (3%) DUMPED.
Backup Server: 4.188.1.1: Database pubs2: 1506 kilobytes (14%) DUMPED.
Backup Server: 4.188.1.1: Database pubs2: 1844 kilobytes (56%) DUMPED.
Backup Server: 4.188.1.1: Database pubs2: 2182 kilobytes (98%) DUMPED.
Backup Server: 4.188.1.1: Database pubs2: 2200 kilobytes (100%) DUMPED.
Backup Server: 3.43.1.1: Dump phase number 1 completed.
Backup Server: 3.43.1.1: Dump phase number 2 completed.
Msg 3906, Level 16, State 1:
Server 'jbdsrv', Line 1:
Attempt to BEGIN TRANSACTION in database 'pubs2' failed because database is READ
ONLY.
1>