Through query you have the following option...
USE master
EXEC sp_dboption '<database-name>', 'read only', 'FALSE'
Ex:
USE master
EXEC sp_dboption 'pubs', 'read only', 'FALSE'
Bye.
Main Topics
Browse All TopicsHello,
I am going to configure Log Shipping between two SQL 2000 databases.
I am going to keep the target database in "StandBy/Read-Only" mode.
Let's say the server that hosts the source database crashed one day and no further Trans-log is available.
How can I switch this database from "StandBy/Read-Only" mode to "Fully Operational " mode"?
Thank you for your help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If you have implemented using the log shipping procedures supplied in the resource kit then you should probably follow the process detailed in "How to set up and perform a log shipping role change " in Books Online.
However to simple bring the standby database into a useable state you can execute following code:
RESTORE DATABASE database_name WITH RECOVERY
EXEC SP_DBOPTION 'database_name', 'read only', 'false'
EXEC SP_DBOPTION 'database_name', 'dbo use only', 'false'
I am going to configure Log Shipping between two SQL 2000 databases.
I am going to keep the target database in "StandBy/Read-Only" mode.
Let's say the server that hosts the source database crashed one day.
now log shipping will be stopped if log shipping is already done.
Now suggest me how to continue the log shipping without affecting existing one.
Thx--PK
Business Accounts
Answer for Membership
by: JagdishDevakuPosted on 2009-01-08 at 20:58:03ID: 23332925
Hi,
Its very simple.
1. Log into SQL Server.
2. Right click on the database -> go to Properties
3. Click on Options on the left pane
4. Now at the bottom you can find State -> Database Read-only option.
5. change it to false to make it fully operational...
thats it..
bye...