Manage Triggers

Triggers can be conveniently managed right from the application itself with ApexSQL Audit via Outlook Bar, Audit Menu or Toolbar:

image001.jpg

image002.jpg

 

 

image003.jpg

You can filter the triggers by table - the default is <All Tables> and also view the attributes of the selected trigger like Name, Owner and Create Date.

image004.jpg

From the Manage Triggers form you can perform a variety of trigger related operations. You may image46.gif, image56.gif or even image57.gif the checked triggers directly from the dialog. Deleting the triggers will be prevented by the confirmation dialog:

image005.jpg

Disabling the triggers will un-mark the Enabled flag:

image006.jpg

The trigger details pane shows all information regarding the currently chosen trigger:

image007.jpg

Trigger Details

Detail

Description

Name

The trigger name.

 

 

Owner

The trigger owner.

 

 

Create Date

The date the trigger was created.

 

 

ANSI NULL

It is True if the ANSI_NULLS option on trigger creating was set to ON, otherwise is False.

 

 

Quoted Identifier

It is True if the QUOTED_IDENTIFIER option on trigger creating was set to ON, otherwise is False.

 

 

The checked triggers can be easily scripted (clicking image59.gif):

image008.jpg

Buttons

Button

Description

image238.gif

This will open the help file.

 

 

image56.gif

This will enable the selected trigger(s).

 

 

image46.gif

This will disable the selected trigger(s).

 

 

image59.gif

This will script the selected trigger(s). The Script window will display.

 

 

image57.gif

This will delete the selected trigger(s). A warning will be displayed before deleting.

 

 

image60.gif

This will refresh the list of displayed triggers.

 

 

image62.gif

This will close the dialog. If any operations were done, a Progress Info window will be displayed and the changes will be reflected in the Audit grid.

 

 

Context Menu

The Context Menu may be accessed by right-clicking in the grid.

image009.jpg

Context Menu Index

Icon

Command

Action

View DDL Script

Shows dialog with DDL/Script for this object.

 

 

 

image254.gif

Script to File

This functionality allows you to write the trigger create statements to script for all of the selected triggers.

 

 

 

image231.gif

Enable Checked Items

This will enable the selected items so they will no longer fire, even though they will still exist in the database.

 

 

 

image233.gif

Disable Checked Items

This will disable the selected items so they will no longer fire, even though they will still exist in the database.

 

 

 

image205.gif

Delete Checked Items

This will remove the checked items from the database.

 

 

 

image57.gif

Select All

This will highlight all triggers.

 

 

 

image231.gif

Check All

This will check all triggers.

 

 

 

image233.gif

Un-Check All

This will un-check all selected triggers.

 

 

 

 

Grid

 

 

 

 

 

Sort Ascending

This will sort the tables ascending by the selected column.

 

 

 

 

Sort Descending

This will sort the tables descending by the selected column.

 

 

 

image60.gif

Collapse Groups

This will collapse the groups after the action of "Group by This Field" command.

 

 

 

image61.gif

Expand Groups

This will expand the collapsed groups.

 

 

 

 

Group by This Field

This will group the selected table(s) by the selected field.

 

 

 

image11.gif

Hide/Show Group by Box

This will hide/show the box the table was grouped by.

 

 

 

image115.gif

Hide/Show Filter Row

This will hide/show the filter row.

 

 

 

image125.gif

Group by

This will open the Group By dialog box and you can choose up to four columns to group the table by.

 

 

 

image126.gif

Sort by

This will open the Sort dialog box and you can choose up to for columns to sort the table by.

 

 

 

image58.gif

Refresh

This will re-query the database to refresh the trigger grid to reflect any underlying changes.