dbTalk Databases Forums  

Can a database be put into read-only mode?

comp.databases.sybase comp.databases.sybase


Discuss Can a database be put into read-only mode? in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas Gagné
 
Posts: n/a

Default Can a database be put into read-only mode? - 06-16-2004 , 10:02 PM






I have a database that I'd like to prohibit any updates/inserts to.
Basically, I want it to be read-only. Is there an option somewhere to
do that?

--
..tom
remove email address' dashes for replies
The last calendar you'll ever need is at <http://www.coordidate.org/>
Opensource middleware at <http://isectd.sourceforge.net/>
<http://gagne.homedns.org/~tgagne/>

Reply With Quote
  #2  
Old   
Bruno
 
Posts: n/a

Default Re: Can a database be put into read-only mode? - 06-17-2004 , 03:21 AM






Thomas Gagné <tgagne (AT) wide-open-west (DOT) com> wrote

Quote:
I have a database that I'd like to prohibit any updates/inserts to.
Basically, I want it to be read-only. Is there an option somewhere to
do that?
sp_dboption "dbname","read only",true
go

but even the dbo is not able anymore to update data, otherwise, you
could create a group including all users (except the dbo) and grant
them "select" only on objects.


Reply With Quote
  #3  
Old   
Carl Kayser
 
Posts: n/a

Default Re: Can a database be put into read-only mode? - 06-17-2004 , 06:18 AM




"Bruno" <bruno.biets (AT) portima (DOT) com> wrote

Quote:
Thomas Gagné <tgagne (AT) wide-open-west (DOT) com> wrote

I have a database that I'd like to prohibit any updates/inserts to.
Basically, I want it to be read-only. Is there an option somewhere to
do that?

sp_dboption "dbname","read only",true
go

but even the dbo is not able anymore to update data, otherwise, you
could create a group including all users (except the dbo) and grant
them "select" only on objects.
I'm missing the point on "otherwise, you could create a group including all
users (except the dbo) and grant
them "select" only on objects." Upon further review, I see that the intent
is "only grant 'select' on objects".

It may also be that applications that are only doing reads may not be able
to "read", namely, if ANSI transaction mode (set autocommit on) is used.
Sybases' implementation will attempt to write empty begin/end transactions
to the log for your select statements and you will get errors for your
"read" executions.




Reply With Quote
  #4  
Old   
Thomas Gagné
 
Posts: n/a

Default Re: Can a database be put into read-only mode? - 06-17-2004 , 06:50 AM



Bruno wrote:

Quote:
Thomas Gagné <tgagne (AT) wide-open-west (DOT) com> wrote



I have a database that I'd like to prohibit any updates/inserts to.
Basically, I want it to be read-only. Is there an option somewhere to
do that?



sp_dboption "dbname","read only",true
go


That's perfect -- and I don't want the dbo to have write access.

--
..tom
remove email address' dashes for replies
The last calendar you'll ever need is at <http://www.coordidate.org/>
Opensource middleware at <http://isectd.sourceforge.net/>
<http://gagne.homedns.org/~tgagne/>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.