How to list table dependencies and triggers?

  • I have about 80 tables in a SQL Server 2000 database.  I need to list all the triggers and dependencies set on each table.

    Is there a sample script or sample SQL statement that I can use to accomplish the above?

    Thanks

     

  • This was removed by the editor as SPAM

  • to get a list of all triggers:

     

      select p.name,  

      t.name,  

      syscomments.text  

      FROM sysobjects t 

      INNER JOIN sysobjects p on p.id=  t.parent_obj  

      INNER JOIN syscomments on t.id=syscomments.id  

      WHERE t.xtype='TR'

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply