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.

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.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Kudoed Authors