Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Team,
i need your help.
i have created one model which is using power query, in this model i'm connecting to sql server using user id and password authentication.It works fine for me but gives authentication error when used by another user.How can we fix that ?
Solved! Go to Solution.
Hi @shashank,
Regarding to the Power Query issues, I would recommend you post the question in the Power Query forum to get dedicated support.
In addition, you can consider to use Power BI Desktop to connect to SQL Server in import mode, then create model and reports. This way, when you send the Power B Desktop to other users, they don’t need to enter credentials.
Thanks,
Lydia Zhang
Are you using the same file to connect to SQL Server using the different user names? If yes, You should try and create parameters for connecting to separate instance of SQL Server
Hi Bhavesh,
type of security in sql server is user name and password, i supplied the same intially when i was connecting to sql server.
another user is supposed to use same credential but i'm assuming that credentials are saved somewhere in power query and another user will not provide any credential while reunning that model, as another user is business user who has no idea regarding those credentials.please correct me if my understanding is wrong..
PowerQuery saves all authentication data to an encrypted file on your local hard drive instead of the PowerBI File.
What is the way of sharing such model which connects to sql server and we do not want user to enter any credentials, any suggestions.
Hi @shashank,
I assume that you connect to SQL Server using Direct Query mode in Power BI Desktop. I test this scenario, in Direct Query mode, the credential used to connect to SQL Server isn’t saved in Power BI Desktop file after I send the PBIX file to my colleague. She got the following screenshot which prompts her to enter credential.
In order to view the report, I should add her as a login in SQL Server or tell her the SQL login and password I have used to connect to SQL Server in Power BI Desktop.
However, when connecting to SQL Server using import mode in Power BI Desktop, the credential used to connect to SQL Server is saved in the PBIX file, and in this scenario, the user who gets the PBIX file can view reports without entering any credentials.
In a word, you would need to switch from Direct Query mode to import mode in your Power BI Desktop file, then send the PBIX file to your user. If you persist to reserve Direct Query mode, you would need to publish the reports to Power BI Service, and create a dashboard for the reports and share the dashboard to user. Please note the user would require pro license to view the reports.
Thanks,
Lydia Zhang
Hi Lydia,
Thanks for your inputs.
Scenaraio here is little bit different.
I'm not using power BI desktop.what i'm doing is.
1-Creating a model only in Excel.
2-Connecting sql server through power query add-in in 2013 version.
3-importing data , doing some clean up then calculation.
4-Throwing that data on one excel sheet and use that in other charts and pivots.
I want to share that excel model to other users but want they should not be prompt for any password, any suggetions ?
Regards
Shashank
Hi @shashank,
Regarding to the Power Query issues, I would recommend you post the question in the Power Query forum to get dedicated support.
In addition, you can consider to use Power BI Desktop to connect to SQL Server in import mode, then create model and reports. This way, when you send the Power B Desktop to other users, they don’t need to enter credentials.
Thanks,
Lydia Zhang
Hi Lydia,
Thanks a lot for your inputs.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
68 | |
55 | |
43 | |
28 | |
22 |