Advantage Client Engine
Removes a trigger from the database.
UNSIGNED32 AdsDDRemoveTrigger( ADSHANDLE hDictionary,
UNSIGNED8 *pucName );
hDictionary (I) |
A data dictionary connection. |
pucName (I) |
The name of the trigger to be deleted. |
Removes the specified trigger from the database.
The pucName property should be qualified with the table name the trigger belongs to followed by two colon characters ( :: ). For example, "Customers::AfterInsertTrig" would specify you want to remove the trigger called "AfterInsertTrig" that belongs to the "Customers" table.
If a trigger container is in use, and modifications are made to a trigger definition (including trigger addition or deletion), the changes will not take effect until all users who have used a trigger in that container disconnect from the database.
Currently trigger creation and deletion will not affect tables already opened by the server. For example, if table1 is opened by active clients, and the administrator adds a new trigger to table1, the trigger will not activate until all active users have closed table1 and it has been re-opened.
Note ALTER permissions on the associated table are required to create a trigger. See Advantage Data Dictionary User Permissions for more information.
ulRetVal = AdsDDRemoveTrigger( hConn, "MyTrigger" );