Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to find where triggers are stored in sql server 2008

I want to delete and modify previously created triggers but i cant find them anywhere in database. Where they exist and how to edit or delele them

like image 565
Fraz Sundal Avatar asked Jul 05 '10 06:07

Fraz Sundal


People also ask

Where are the triggers stored in SQL Server?

Server-scoped DDL triggers appear in the SQL Server Management Studio Object Explorer in the Triggers folder. This folder is located under the Server Objects folder. Database-scoped DDL triggers appear in the Database Triggers folder.

How do I find triggers in SQL Server database?

To view database level triggers, Login to the server using SQL Server management studio and navigate to the database. Expand the database and navigate to Programmability -> Database Triggers. To view triggers at the server level, Login to Server using SSMS and navigate to Server Objects and then Triggers folder.

How do you check if there are any triggers on a table?

Just go to your table name and expand the Triggers node to view a list of triggers associated with that table.


2 Answers

You can find Triggers under Table node:

enter image description here

like image 68
šljaker Avatar answered Oct 13 '22 11:10

šljaker


Under the Tables node in SSMS (SQL Server Management Studio), for each table there is a Triggers node.

You can manage your triggers from there.

like image 40
Oded Avatar answered Oct 13 '22 13:10

Oded