Subject | Re: How to make a table read-only? |
---|---|
Author | russellbelding |
Post date | 2005-09-23T01:13:04Z |
Thanks Adam. The list of users changes often. So constraining uses
is not attractive. The datafile cannot be made read-only. Adding
before-update and before-delete trigggers with exceptions in the
triggers will allow insertions.
RB
--- In firebird-support@yahoogroups.com, "Adam" <s3057043@y...>
wrote:
is not attractive. The datafile cannot be made read-only. Adding
before-update and before-delete trigggers with exceptions in the
triggers will allow insertions.
RB
--- In firebird-support@yahoogroups.com, "Adam" <s3057043@y...>
wrote:
> --- In firebird-support@yahoogroups.com, "russellbelding"to do
> <russell@b...> wrote:
> > I have some look-up tables I'd like to make read-only. One way
> > this is to put before-update, before-insert, before-deletetriggers
> > onsuggestions of
> > these tables and in the triggers place exceptions. Any
> > other ways to make a table a read-only-table?users
> > Thanks
> > Russell Belding
>
> Deny insert and update and delete permissions to the applicable
> or roles. (which may be everyone other than SYSDBA). Obviouslysomeone
> needs write permissions at some stage or the table will be empty.the
>
> There is also an option to make the entire database read only. But
> trigger option will also work.
>
> Adam