Forum Discussion
power query connecting to sql server(user id and password) is not working on another user computer
- Anonymous9 years ago
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..
- BhaveshPatel9 years ago
Super User
PowerQuery saves all authentication data to an encrypted file on your local hard drive instead of the PowerBI File.
- shashank9 years ago
Helper III
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.
- Anonymous9 years agoNot applicable
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