Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How to drop a triiger via query analyser

Author  Topic 

reddymade
Posting Yak Master

165 Posts

Posted - 2006-08-16 : 16:40:08
Could you please tell me how can i drop a trigger from query analyzer

triggername is: insTAB_NetCN_log

the above trigger is under the table dbo.TAB_NetCN


Thank you very much for the information.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-08-16 : 16:42:16
Did you even try searching in SQL Server Books Online?

DROP TRIGGER...

Tara Kizer
Go to Top of Page

sqldba2k6
Posting Yak Master

176 Posts

Posted - 2006-08-16 : 16:55:59
IF EXISTS (SELECT name FROM sysobjects
WHERE name = insTAB_NetCN_log' AND type = 'TR')
DROP TRIGGER insTAB_NetCN_log

Go to Top of Page

ravilobo
Master Smack Fu Yak Hacker

1184 Posts

Posted - 2006-08-17 : 10:50:35
How about..

IF DB_ID('insTAB_NetCN_log') IS NOT NULL
DROP TRIGGER insTAB_NetCN_log


------------------------
I think, therefore I am - Rene Descartes
Go to Top of Page
   

- Advertisement -