cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jayho
New Member

Providing Credentials to ODBC via CredentialsConnectionString option in Odbc.query and for files

1.) Just wondering if it is possible to pass credentials to the CredentialsConnectionString option for the Odbc.query so that it won't asks for credentials each time? I tried passing in a record like this [CredentialsConnectionString = [UID = xxxx, PWD=xxxx]] but nothing changed and I am still prompted for the the credentials when running my unit tests for the first time.

 

2.) Likewise, is it possible to supply credentials to power query so that we don't have to enter credetentials when accessing files on windows on power query?

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @jayho ,

1) For safety reasons, no. Usually connection string just contain the dsn name, you need credentials to connec to the odbc data source. 

If you do not clear the permissions in power query, you do not need to enter credentials each time just select 'Recent Sources' to connect to the same odbc source.

 

2) When accessing filed on windows in power query, you can use the corresponding connectors to connect directly instead of entering credentials each time.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yingjl
Community Support
Community Support

Hi @jayho ,

1) For safety reasons, no. Usually connection string just contain the dsn name, you need credentials to connec to the odbc data source. 

If you do not clear the permissions in power query, you do not need to enter credentials each time just select 'Recent Sources' to connect to the same odbc source.

 

2) When accessing filed on windows in power query, you can use the corresponding connectors to connect directly instead of entering credentials each time.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Kudoed Authors