Forum Discussion
ODBC Url connection How to put a parameter
- 3 years ago
= Odbc.DataSource("Driver={PostgreSQL Unicode(x64)};Server=localhost;Port=5432;Database=" & databasename & ";", [HierarchicalNavigation=true])
I decide which of the parameter value to use in the query editor
How?
In the Source Query :
= Odbc.DataSource("Driver={PostgreSQL Unicode(x64)};Server=localhost;Port=5432;Database=databasename;", [HierarchicalNavigation=true])
I want to add a parameter name instead of "databasename" because for now it's hardcoded and I want the database name to be dynamic.
- lbendlin3 years agoSuper User
Why does it have to be a multi choice parameter? Could it be a scalar parameter instead?
Are you trying to implement your own version of deployment pipelines?
- CTouu3 years agoFrequent Visitor
I think you didn't understood my issue.
I just want to know how to variabilize an ODBC Source in the Query Editor
For example :
I need to import 23 tables
if I have a DEVELOPMENT database with a dbname A
and a PROD database with a dbname B
I want to know how to switch the dbname without having to change the dbname manually in each of the 23 tables
- lbendlin3 years agoSuper User
= Odbc.DataSource("Driver={PostgreSQL Unicode(x64)};Server=localhost;Port=5432;Database=" & databasename & ";", [HierarchicalNavigation=true])