how to create trigger in sqlserver 2000?

1 view
Skip to first unread message

sujata routray

unread,
Nov 3, 2005, 12:58:31 AM11/3/05
to Techdot...@googlegroups.com





__________________________________________________________
Enjoy this Diwali with Y! India Click here http://in.promos.yahoo.com/fabmall/index.html

BabuLives

unread,
Nov 3, 2005, 1:10:32 AM11/3/05
to .NetIndia
hai...

USE pubs
IF EXISTS (SELECT name FROM sysobjects
WHERE name = 'mytrigger' AND type = 'TR')
DROP TRIGGER mytrigger
GO
CREATE TRIGGER mytrigger
ON TableName FOR INSERT[UPDATE/DELETE]
AS
Update tablename set col='Inserted'
GO

Regards,
Satheesh

Reply all
Reply to author
Forward
0 new messages