This optional clause defines the relationship between a UDF or external stored procedure and data that is external to Vantage.
The option you specify determines:
- Whether the external routine can read or modify external data
- Whether the database redrives the request involving the function or procedure after a database restart
If Redrive protection is enabled, the system preserves responses for completed SQL requests and resubmits uncompleted requests when there is a database restart. For details about Redrive functionality, see Redrive Protection for Queries.
If you do not specify an External Data Access clause, the default is NO EXTERNAL DATA.
The following table explains the options for the External Data Access clause and how the database uses them for external routines.
Option | Description |
---|---|
MODIFIES EXTERNAL DATA | The routine modifies data that is external to the database. The word "modify" includes delete, insert, and update operations. Following a database failure, the database does not redrive requests involving a function or external stored procedure defined with this option.
|
NO EXTERNAL DATA | The routine does not access data that is external to the database. This is the default. |
READS EXTERNAL DATA | The routine reads, but does not modify data that is external to the database. |