Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Database container (DBC) events occur when actions occur in a database. You can add procedure code to these events that executes when those events occur.
The following table describes available DBC events.
DBC events |
Description |
|---|---|
Occurs when an open database becomes the current database. |
|
Occurs when a database is no longer the current database. |
|
Occurs before adding a relation to the database. |
|
Occurs after adding a relation to the database successfully. |
|
Occurs before adding a table to an open database. |
|
Occurs after adding a table to an open database. |
|
Occurs before completing the APPEND PROCEDURES operation in the current DBC stored procedue. Use to prevent the append operation. Also, use to discover the name of the DBC involved. |
|
Occurs after completing the APPEND PROCEDURES operation. |
|
Occurs before closing a table or view. |
|
Occurs after closing a table or view. |
|
Occurs before beginning the copy procedure operation in the current DBC. Use to prevent the operation. Also, use to discover the name of the DBC involved. |
|
Occurs after completing the copy procedure operation in the current DBC. Use to discover the name of the DBC involved. |
|
Occurs before creating a connection. Use to prevent creating the connection or opening the connection designer. |
|
Occurs after creating a connection. |
|
Occurs before taking a view offline. Use to prevent offline view. |
|
Occurs after completing the CREATEOFFLINE( ) fuction. |
|
Occurs before creating a table in an open database. |
|
Occurs after creating a table in an open database. |
|
Occurs before creating a view. Use to prevent view from being created or view designer from being opened. |
|
Occurs after creating a view. |
|
Occurs before running DBGETPROP( ). |
|
Occurs after completing DBGETPROP( ). |
|
Occurs before running DBSETPROP( ) or when the "Event" property is changed. |
|
Occurs after completing DBSETPROP( ) or when the "Event" property is changed. |
|
Occurs before dropping a connection. |
|
Occurs after dropping a connection. |
|
Occurs before returning a view to online. Use to prevent bringing offline view back online. |
|
Occurs after completing DROPOFFLINE( ). |
|
Occurs before dropping a relation from a database. |
|
Occurs after dropping a relation from a database successfully. |
|
Occurs before removing a table from the DBC and deleting from disk. |
|
Occurs after removing a table from the DBC and deleting from disk. |
|
Occurs before removing a view from the DBC. Use to prevent view from being dropped. |
|
Occurs after removing a view from the DBC. |
|
Occurs before modifying a connection. |
|
Occurs after modifying a connection. |
|
Occurs before modifying a DBC-stored procedure in an open DBC. Use to prevent modification. Also, use to discover the name of the current DBC. |
|
Occurs after modifying and closing the stored procedure file for the DBC. |
|
Occurs before modifying a table. |
|
Occurs after modifying a table. |
|
Occurs before modifying a view. |
|
Occurs after modifying a view. |
|
Occurs before opening a table or view. |
|
Occurs after opening a table or view. |
|
Occurs before removing a table from the DBC. |
|
Occurs after removing a table from the DBC. |
|
Occurs before renaming a connection. |
|
Occurs after renaming a connection. |
|
Occurs before renaming a table. |
|
Occurs after renaming a table. |
|
Occurs before renaming a view. |
|
Occurs after renaming a view. |
|
Occurs before executing VALIDATE DATABASE. Return .F. to prevent the DBC from being validated. |
|
Occurs after completing VALIDATE DATABASE. |
|
Occurs immediately after Modify Data is issued. Use to prevent opening of Schema window. Also, can open a closed database. |
|
Occurs when a database opens or when a MODIFY DATABASE command is issued against a closed database. Use to close an open database. |
|
Closes an open database. |
|
Occurs before executing PACK DATABASE. Use to prevent the DBC from being packed. |
See Also
Tasks
How to: Enable or Disable DBC Events
How to: Add Code to a DBC Event