SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Verify thats you can read the data but not modify
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sha1023012
Starting Member

4 Posts

Posted - 03/06/2013 :  20:40:28  Show Profile  Reply with Quote
Hello everyone I am learning how to restore a database. I am being ask to verify that you can read the data but not modify it and Verify that the departments that were added are missing from the database. This is my second attempt to do the restore I dont know if I type something in wrong the last time so my question is what would be the codes to do the verify so I am not putting the restore in an online mode cause thats what I think i did the last time.Thanks

russell
Pyro-ma-ni-yak

USA
5072 Posts

Posted - 03/07/2013 :  01:00:12  Show Profile  Visit russell's Homepage  Reply with Quote
ALTER DATABASE <db name> SET READ_ONLY;
Go to Top of Page

yadhu_cse
Constraint Violating Yak Guru

India
252 Posts

Posted - 03/07/2013 :  01:34:29  Show Profile  Reply with Quote
Hi,
Give Read only access to the user. if you give read only access to databse then no one can modify the data. if you want to restrict data to be modified for particular user then you have set at access level.
Go to Top of Page

MIK_2008
Flowing Fount of Yak Knowledge

Pakistan
1052 Posts

Posted - 03/07/2013 :  06:21:40  Show Profile  Reply with Quote
Once you restore the database, then execute the statment Russell mentioned. That will turn that database to be only in ReadOnly mode.

Cheers
MIK
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000