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 Execute the Cursor Queries with "OPEN" Statements? |
☺ | What Happens If Strings Are Casted into Wrong Code Pages in MS SQL Server? |
☺ | How To Defragment Indexes with ALTER INDEX ... REORGANIZE? |
☺ | How To Configure ODBC DSN with Different Port Numbers? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Sybase Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |