So, first time trying to execute an SP. Wondering if I think this is right:
I create a project, in the Gateway Event Scripts, set a scheduled script - based on whatever occurrence I want it to execute at, then the script would look like this:
Honestly, just avoid the headache* and call it directly either from a Named Query, or PrepQuery. Particularly if you have many parameters that will need to be registered.
*If your flavor of DB's JDBC driver happens to be somewhat "agnostic" to SQL scripts. If not you may have issues not using the SProcCall family of functions.
Assuming that the DataSource is also named 'IgnitionHud'.
In this instance that is the name given to the Database Connection when it was added to the gateway. It can be completely different from the DB name in SQL.
The square brackets in the documentation indicate that the parameter is optional. So technically the default data source would be used if you left the parameter out. I recommend always suppling the data source name.
You can find the actual data source name in the gateway at Config>Database>Database Connections
This depends on the Stored Procedure and what it is doing.