Hi,
I Have an external Micrsoft SQL server database defined in the external account in my ACC. I am able to use the database from the "JavaScript code" activity in the ACC workflows with no problem. However, when I am trying to query that external database from the "Script" Activity in the ACC web application(for example, by just a simple select sql query or a simple join), in the preview debug window. it shows some errors like below:
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @kattyice ,
Can you try using SQL code like the below in JS of the WebApp?
sqlExecOnDataSource (query, dataSource [, value1, ... ])
The authorized values for the data source can be:
· <dataStore hosts="*" lang="">· <dataSource name="datasourcename">· <dbcnx encrypted="" login="" password=""· provider="" server=""/>· </dataSource> </dataStore>
Example:
sqlExecOnDataSource("UPDATE XtkOption SET sStringValue = $(sz) WHERE sName = $(sz)", <DataSource>sTableSpace, 'WdbcOptions_TableSpaceWork_nms:extAccount:' + sExtAccount)
Views
Replies
Total Likes
Hi @kattyice ,
Can you try using SQL code like the below in JS of the WebApp?
sqlExecOnDataSource (query, dataSource [, value1, ... ])
The authorized values for the data source can be:
· <dataStore hosts="*" lang="">· <dataSource name="datasourcename">· <dbcnx encrypted="" login="" password=""· provider="" server=""/>· </dataSource> </dataStore>
Example:
sqlExecOnDataSource("UPDATE XtkOption SET sStringValue = $(sz) WHERE sName = $(sz)", <DataSource>sTableSpace, 'WdbcOptions_TableSpaceWork_nms:extAccount:' + sExtAccount)
Views
Replies
Total Likes
Views
Likes
Replies