Re: role/permissions to allow SELECT and creating and deleting triggers

From: Tom Moreau (tom_at_dont.spam.me.cips.ca)
Date: 06/26/03


Date: Thu, 26 Jun 2003 16:03:47 -0400

Try:

grant create trigger, alter trigger to MyUser

-- 
Tom
---------------------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com/sql
"Jed Ozone" <jed ozone@yahoo.com> wrote in message news:#pRtSxBPDHA.2248@TK2MSFTNGP11.phx.gbl...
I'm trying to figure out how to setup a role (or just give a user
permssions, since it's only 1 user)  on a particular database to have SELECT
privileges on all tables (that's easy enough to do), but also allow the user
to create and delete triggers (only) in that database.
The only caveat here is I do not want the user to be able to delete or drop
tables in that database.
The standard security (GUI) seems to only allow you to control tables by
limiting SELECT, INSERT, UPDATE, DELETE, and DRI.


Relevant Pages

  • Re: How to limited number of rows in a table?
    ... If this is a log table, database blocking should ... Pro SQL Server 2000 Database Design ... > I'll bend on the trigger, but I think a nightly job may be too infrequent ...
    (microsoft.public.sqlserver.programming)
  • Re: Trigger: To fill another Database with using Stored Procedures of the other Database
    ... I fill from Database A with triggers Database B, ... add additional information accordingly, this Stored Procedures is ... trigger does not work anymore, even if I do a try catch over the whole ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (comp.databases.ms-sqlserver)
  • call to xp_cmdshell from trigger problem
    ... To any SQL Server MVP: ... database that is used to alert and calculate required amounts of assistance ... At first it failed because the trigger called the EXE but the tables were ...
    (microsoft.public.sqlserver.server)
  • Re: implement Save button
    ... When we use a disconnected recordset, i.e. we do not use the databinding. ... you want to make a few steps in database side ... For SQL server we can use the Trigger, which is a special kind of stored ...
    (microsoft.public.vb.enterprise)
  • Re: how does trigger works?
    ... Improve your validation process and use a trigger. ... Pro SQL Server 2000 Database Design ...
    (microsoft.public.sqlserver.programming)