Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Dynamic selection of connection string details from SQL Server

Dinesh13
6 - Meteoroid

Hi, I'm new to Alteryx. I have a requirement to run workflow in DEV, QA & PROD and move data from oracle(source) to MS SQL(destination). I want to get collection name and if collection name='qa' then connection string details data should be picked from config table from 'qa' db. If collection name='prod' then data should be picked from config table from 'prod'dB. Right now, I do not have provision to get collection name. So I will declare a variable='qa' then it should pick 'qa' dB(select * from config where sorname='Dev', whatever variable value(Dev/qa/prod) data should come from that Database. I have a configuration table in 'employee' DB in MS SQL server. I have below data in dbo.config, which is in MS SQL.

My source SOR - Oracle ; My Destination - MS SQL

Dev environment - 

SORNameNameValueSOR_DEST
Devservernamedesti_server_devDest
empsorusername dinesh_devSor
empsorpassworddinesh0Sor
empsorservernamedev_emp_serverSor

 

QA  environment -

SORNameNameValueSOR_DEST
QAservernamedesti_server_qaDest
empsorusername dinesh_qaSor
empsorpassworddinesh0Sor
empsorservernameqa_emp_serverSor

 

PROD environment - 

SORNameNameValueSOR_DEST
PRODservernamedesti_server_prodDest
empsorusername dinesh_prodSor
empsorpassworddinesh0Sor
empsorservernameprod_emp_serverSor

 

I want to build my workflow based on above data. If i move workflow from one environment to other then workflow should be smart enough automatically pull data from dbo.config table. I will not change any values on run time. May be am wrong in picking values, u can correct me. Any help is really appreciate.

3 REPLIES 3
TrevorS
Alteryx Alumni (Retired)

Hello @Dinesh13 
Can you please include a copy of your workflow and what you have completed so far?
This will help the Community to better assist you with any of the issues you have encountered with your workflow.
Thanks!
TrevorS

Community Moderator
Dinesh13
6 - Meteoroid

Hi. I'm new this. I have added my workflow. I want to pull data from SOR to Destination. I have to get source connection details from config table. I have added my workflow. May be there are many changes required. Please help me out.

 

I have textbox=QA. If i give QA then i have to connection QA destination server. Whatever value defined in textbox destination connection string should connect to that server. If it can be doable in a better way please help me out.

TrevorS
Alteryx Alumni (Retired)

@Dinesh13 

I looked into this further, and there is some material on the Community to help get you started.
https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Moving-from-Dev-to-Prod/ta-p/158825
https://community.alteryx.com/t5/Alteryx-Designer-Ideas/Allow-the-use-of-constant-after-the-quot-aka...

 

I hope this helps!

Community Moderator
Labels