Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Brett
  •  Brett
  • No customer Topic Starter
2012-09-19T00:44:35Z
HI support - I would like to be able to set the connection string for a SQL task to the value contained in a visual cron variable.
I am pushing out updates to different servers depending on a parameter read in from a trigger table - I want to create one generic VC job that executes some SQL statements - I have a number of connection strings set up - one for each server - to do this I need to be able to have the connection string selected from a variable.

Thanks
Brett
Sponsor
Forum information
Brett
  •  Brett
  • No customer Topic Starter
2012-12-11T00:10:54Z
Just wanted to see if this will be considered for an enhancement ?
Support
2012-12-11T07:47:10Z
You should already be able to do this now. You can just specify Connection string option when creating a Connection. Then just paste a Variable there (which you can change from other place).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Brett
  •  Brett
  • No customer Topic Starter
2012-12-11T22:53:34Z
Thanks for the tip - this does solve the problem - for anyone else's interest the connection string looks like this

Driver={SQL Server};Server=disql03;Database={USERVAR(metric_project)};Uid=username;Pwd=userpassword;

The connection will fail the test option in the connection dialog but does work correctly when used. 😁

Brett
Scroll to Top