How To Delete Existing Triggers using "DROP TRIGGER"?
Submitted by: AdministratorIf you don't want to use a trigger any more, you should delete it from the database by using the "DROP TRIGGER" statement as shown in tutorial example:
USE GlobalGuideLineDatabase;
GO
DROP TRIGGER new_user;
GO
SELECT * FROM sys.triggers
GO
<pre>name object_id parent_id type type_desc
------------ ----------- ----------- ---- ------------
dml_message 690101499 674101442 TR SQL_TRIGGER </pre>
Trigger, new_user, is deleted now.
Submitted by: Administrator
USE GlobalGuideLineDatabase;
GO
DROP TRIGGER new_user;
GO
SELECT * FROM sys.triggers
GO
<pre>name object_id parent_id type type_desc
------------ ----------- ----------- ---- ------------
dml_message 690101499 674101442 TR SQL_TRIGGER </pre>
Trigger, new_user, is deleted now.
Submitted by: Administrator
Read Online MS SQL Server Job Interview Questions And Answers
Top MS SQL Server Questions
☺ | What Happens If You Insert a Duplicate Key for the Primary Key Column in MS SQL Server? |
☺ | How To Select Some Specific Rows from a Table in MS SQL Server? |
☺ | How To Convert a Numeric Expression from One Data Type to Another? |
☺ | PHP MSSQL - How To Display a Past Time in Days, Hours and Minutes? |
☺ | How To Create a Testing Table with Test Data in MS SQL Server? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Sybase Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |