Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Readonly view
Message
From
17/01/2003 08:51:50
 
 
To
17/01/2003 07:08:05
Martin Van Krieken
Capgemini Nederland Bv
Utrecht, Netherlands
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
00742804
Message ID:
00742832
Views:
18
Set the permissions so that everyone only has SELECT permission for the view.

-Mike

>Hello,
>
>I have a problem with a view in SQL 2000. I want this view to be read only, but I can't find an easy way to accomplice that.
>My first idea was to create a trigger on the view which raises an error, but I can't create a trigger on the view.
>My next attempt was an instead of trigger (on insert, upadte and delete). This works fine when I insert, update or delete a record in code, but when I open the view in the MMC I can add a record without any problem.
>So my questions are:
>
>* Has anyone an idea how to get a readonly view?
>* Why can't I heve triggers on views (it should be possible according to the BOL)?
>* Why are instead of triggers not fired by the MMC?
>
>TIA,
>
>Martin
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform