adspace


Explain syntax for viewing, dropping and disabling triggers?

Answer Posted / Shashank Saxena

To view triggers: `SELECT * FROM sys.triggers`nTo drop a trigger: `DROP TRIGGER [schema_name].[trigger_name]`nTo disable a trigger: `DISABLE TRIGGER [schema_name].[trigger_name] ON [table_name]`nTo enable a trigger: `ENABLE TRIGGER [schema_name].[trigger_name] ON [table_name]`

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an indexed view?

1023


List out the different types of locks available in sql server?

1051


How to connect php with different port numbers?

1191


what is spatial nonclustered index

1060


What is the primary use of the model database?

1151


What are the different SQL Server Versions you have worked on?

1080


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1200


Equi join and non equi join is possible with sql server?

1134


Why and when do stored procedure recompile?

1064


What are the source of constraints?

1010


What is self contained sub query?

1141


What is the difference between upgrade and migration in sql server?

1185


How do I create a trace in sql server?

1121


How to convert numeric expression data types using the cast() function?

1151


Why we use the openxml clause?

1080