Advantage Concepts
The final step in trigger creation is to register your trigger with the database.
Open ARC.
Select Database -> Open Database from the main menu.
Enter "c:\data\trig_tutorial.add" as the database name.
Set the Advantage Connection Type to local or remote (depending on which server type you are using).
Click the Open button.
Click the OK button at the login prompt.
Expand the tables tree item.
Expand the orders table tree item.
Highlight the triggers tree item.
Set the Trigger Type to AFTER.
Take the appropriate steps below depending on your development environment:
Select the Windows DLL or Linux Shared Object tab.
Enter "c:\data\AdsTrigs.dll" as the Container Path and Filename.
Enter "MyFunction" as the Function Name.
Click the Save button.
Enter "t1" as the trigger name.
Click the OK button.
Select the COM Object or .NET Assembly tab.
Enter "AdsTrigs.trig_functions" as the Program ID.
Enter "MyFunction" as the Function Name.
Click the Save button.
Enter "t1" as the trigger name.
Click the OK button.