Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 months ago
Solved

ODBC deployment rules

Hi, We have two environments in Datasphere (development and production), and we connect to them using an ODBC connector. I would like to to connect to the development environment and change t...
  • grazitti_sapna's avatar
    9 months ago

    Hi Anonymous 

     

    When using ODBC connections in Power BI Datasphere, deployment pipelines don’t automatically switch connection strings unless they are set up as parameters in your semantic model or dataset.

    If your ODBC DSN or connection string is hardcoded, deployment pipelines can’t change it directly.

    Here’s what you can do:

    • Use parameters in your dataset/semantic model for parts of the ODBC connection (like server name) so deployment pipelines can update these during deployment.
    • Manage separate ODBC DSNs for dev and prod on your gateway and configure deployment pipelines to use the correct gateway connection.
    • If parameters aren’t possible, manually update the connection string after deployment.

    In short, to automate switching, parameterize connection info or use gateway DSNs mapped correctly per environment. Do let us know if it helps.

     

    🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.

    💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.

    🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.

    🔗 Curious to explore more? [Discover here].

    Let’s keep building smarter solutions together!