Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Microsoft SQL Data Import Error with Windows credential

Hi all, I constantly ran into an error when I tried to start a new blank report and import data from Microsoft SQL server using the Windows credentials:Screenshot 2024-07-29 101432.png

 

I tested it on a different computer with a older version Power BI and the problem was solved, so I believe it might be a version issue as I just installed the latest on my device. Does anyone have any clue how I fix this? Thanks a lot!

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Regarding your questions, you can try adding the server name to your computer's environment variables.

Something like this.

Variable Name: PBI_SQL_TRUSTED_SERVERS
Variable Value: SQL Server Name <--enter your sql server name here

 

For multiple servers, you need to use a comma and space (, ) to separate each server in the value field. You can also use an asterisk (*) for servers of the same name.

 

Variable Name: PBI_SQL_TRUSTED_SERVERS
Variable Value: SQL Server Name01, SQL Server Name02, SQL Server Name03

or

Variable Name: PBI_SQL_TRUSTED_SERVERS
Variable Value: SQL Server Name*

Or check the option to encrypt the connection in Power BI Desktop.

vzhouwenmsft_0-1722305098509.png

 

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.