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)
 Creating triggers in sqlserver 2000

Author  Topic 

macca
Posting Yak Master

146 Posts

Posted - 2006-02-20 : 07:31:09
I am creating a trigger in sqlserver 2000. I created it using the sql query analyzer.
I went into the database and wanted to open the Trigger but cannot find it. Does anyone know where the trigger is saved to when it has been created and can I view it.

Thanks,

macca

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-02-20 : 07:35:38
Method 1 :
- in Query Analyser, press F8 to show the Query Browser if it is not already shown
- navigate to your database, table, triggers
- right click on the trigger and select edit

or

Method 2 :
sp_helptext trigger_name


----------------------------------
'KH'

Time is always against us
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-02-20 : 07:38:12
Method 3:

Enterprise Manager
Open Database
Right click Table
All tasks : Manager triggers
Choose the trigger from the drop-down list

Kristen
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-02-20 : 08:00:19
Method 4

select c.text from syscomments C inner join sysobjects o
on c.id=o.id where o.xtype='tr'


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -