Droping Triggers For Sys.server_triggers

Answered Droping Triggers For Sys.server_triggers

  • Monday, March 04, 2013 5:59 AM
     
     

    hi i create one trigger at database lavel to stop creating database

    but now i want to disable trigger

    but it's showing following error

    Cannot find the object "R_Tr_Database" because it does not exist or you do not have permissions.

    how to enable and disable or drop this trigger witch is store  in sys.server.triggers 


    • Edited by Rakesh Talla Monday, March 04, 2013 6:00 AM speling mistake
    •  

All Replies

  • Monday, March 04, 2013 6:09 AM
     
     
    I would have to think such triggers would be defined at server level...do you see any triggers under--> server objects--> Triggers in your object explorer.. right clickon the trigger and see if you can disable them....

    Hope it Helps!!

  • Monday, March 04, 2013 6:20 AM
     
     

    Make sure you have write privilege on the relevant object and read

    http://msdn.microsoft.com/en-us/library/ms189748.aspx


    Many Thanks & Best Regards, Hua Min

  • Monday, March 04, 2013 7:06 AM
     
     
    first can you check the trigger existence. where its lying currently..?
  • Monday, March 04, 2013 7:23 AM
     
     
    ya i got it in server objects but on right click it's not  showing any  option like enabling and disabling triggers 
    • Edited by Rakesh Talla Monday, March 04, 2013 7:25 AM sentance missed
    •  
  • Monday, March 04, 2013 7:24 AM
     
     

    i am using sa account so it will have all rights na 

  • Monday, March 04, 2013 7:32 AM
     
     

    i am using sa account so it will have all rights na 


    What have you executed to get this error?
    Cannot find the object "R_Tr_Database" because it does not exist or you do not have permissions

    Many Thanks & Best Regards, Hua Min

  • Monday, March 04, 2013 7:38 AM
     
     Answered

    ok i got it i just Wrote database instead of all server 

    what happen  earlier i wrote this Following  query to enable and disable that triggers 

       

    disable trigger R_Tr_Database on database

    then i wrote this following query  and it's works 

     enable trigger R_Tr_Database on all server 

    Thanks