sqlRead
Reads data from a Standard Sql Statement. See SQL Statements for how to create statements.
Demo
Parameters
statementName - The name of the statement
additionalParameters - all controls in the current config are set as paramters automatically. If you need to add additional parameters, you can use this json object to set them
queryOptions - (optional) a json object with options for the request
timeout - (optional) timeout for the SQL request. Default is 30 seconds
connectionKey - (optional) a key to a custom settings entry with the connection string to an external MSSQL database
Example Usages
Lets assume, we have a standard statement "select adrName from address where id=@id"
Return Values
The function returns the subData property of the result obtained from the SQL read operation. If there is no result or the result doesn't contain subData, it will return undefined.
Last updated