Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Parameterize DB connection

sidatm
6 - Meteoroid

Hi All,

 

I need to use "Write to file or Database" to output a data to database table. I am trying to parameterize DB connection string by storing following values in formula, creating a new column "abc" and putting that column as [abc] in DB connection. However, i am getting error no table is chosen. Can someone please advise what i am doing wrong?

 

"odbc:DRIVER={ODBC Driver 17 for SQL Server};DATABASE=master;SERVER=<<server name>>;Trusted_Connection=yes|||[databaseName].schema.tableName"  

 

please see attached screenshot;

1 REPLY 1
geraldo
13 - Pulsar

@sidatm 

 

One way to change the connection is to put it in a macro and replace the connection string
Here's an example

Labels
Top Solution Authors