ExecAppName property: Query class
Description
This property specifies the name of the application executing the query. This property isn't required. This means this property is used only if the query will be executed. This name is stored in the query execution log. This property returns a blank value when the query is opened.
When executing a query using the query API, this property should be set to the Application name that's executing it, so that the Query Monitor can track query execution. Doing this makes this property useful for query administration. If you try to read this property before setting it, you receive a NULL string.
This property should be set before using RunToRowset or RunToFile.
This property is read/write. However, this property is generally used only to set the name, rather than to read it.