MSSQLCity.Com - All about MS SQL
     
About Us  
SSWUG Articles  
Articles  
FAQ  
Administration  
Backup/Restore  
Connectivity  
Development  
General  
Installation  
OLAP  
Replication  
Transfer/move  
Trouble  
SQL 6.5  
Scripts  
Tips  
Test Exams  
Advertise  
Download  
History  
Search  
Traffic  
Related Links  
     
Your button logo
Add to Favorites
 
     
 


How can I make database to be read only?

Answer:

To make database to be read only, you can use the Enterprise Manager or the sp_dboption system stored procedure.

For example, to make the pubs database to be read only, you can use the following statement:

EXEC sp_dboption 'pubs', 'read only', 'TRUE'

Read SQL BOL to get more information about the sp_dboption system stored procedure.


 

 
Visit The SQL Server Worldwide User's Group for all the latest news and information about SQL Server, Oracle, DB2 and XML for developers and administrators.

(c) 1997, 2010 Bits on the Wire, Inc