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
 SQL Server 2008 Forums
 Transact-SQL (2008)
 permissions on sql server triggers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jassie
Constraint Violating Yak Guru

312 Posts

Posted - 02/04/2013 :  22:33:48  Show Profile  Reply with Quote
In a sql server 2008 r2 database I just added 3 triggers to a specific table. Can you tell me if the user and/or application that uses the triggers need to have specific permission levels for the triggers to run. If these permissions are required, can you tell me what permissions are required for the user and/or application to run an access the triggers?

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 02/04/2013 :  22:55:29  Show Profile  Reply with Quote
3 triggers on single table? can you tell whats the purpose of them?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

jassie
Constraint Violating Yak Guru

312 Posts

Posted - 02/05/2013 :  08:14:20  Show Profile  Reply with Quote
The triggers are setup to keep track on changes from the 'main' table. The 'main' table has triggers for insert, update, and delete. The result of the changes ends up in the 'audit' table.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 02/05/2013 :  10:08:16  Show Profile  Reply with Quote
why do you need separate triggers? cant you create a single DML trigger for handling all the operations?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

jassie
Constraint Violating Yak Guru

312 Posts

Posted - 02/05/2013 :  20:53:45  Show Profile  Reply with Quote
Thanks!
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.08 seconds. Powered By: Snitz Forums 2000