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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Trooz
Helper I
Helper I

How to import SQL files to Power BI

Dear All,

 

I would like to ask you how can I import two SQL files that I've downloaded to Power BI as I have no experience with SQL servers. I've only downloaded an application called "Microsoft SQL server Management" but I don't know how to go further?

 

Thanks in advance 🙂

1 ACCEPTED SOLUTION

Hi @Trooz 

 

Ifthis is SQL Server .BAK files, just restore the .bak files to any SQL Server and use that. You could also take it a step further and just use the SQL Server as an intermediary and create bacpac files of them so that you can run the SQL Server using something low cost like Azure SQL DB.

 

http://stackoverflow.com/questions/12057661/converting-sql-bak-to-sql-backpac-format

 

Community Support Team _ Dina Ye
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

6 REPLIES 6
amitchandak
Super User
Super User

@Trooz , It not clear you want to connect to SQL server of having sql statement which you want to run

Refer

https://docs.microsoft.com/en-us/power-bi/service-gateway-sql-tutorial

https://www.red-gate.com/simple-talk/sql/bi/power-bi-introduction-working-with-sql-server-data-in-po...

 

If you want to give a SQL, you can give under advance option

AdvanceProperty.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Hi Amit thank you for your reply and I'm sorry for not being clear enough.

I've checked the links you provided but unfortunately I didn't understand properly how can I fix the issue.

Simply I have those two SQL files (That include the table which I should work on)

 files.png

 

When I click "SQL server" on Power BI

port.png

I'm asked to enter the SQL server which I don't know ... As you saw I have the files on my local device so (I want to create a local server to upload these files then get connected to this server and use the files) this is what I understood , I don't know if this works as I explained or I should follow another way to import these files on Power BI .

Hi @Trooz 

 

Ifthis is SQL Server .BAK files, just restore the .bak files to any SQL Server and use that. You could also take it a step further and just use the SQL Server as an intermediary and create bacpac files of them so that you can run the SQL Server using something low cost like Azure SQL DB.

 

http://stackoverflow.com/questions/12057661/converting-sql-bak-to-sql-backpac-format

 

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

@v-diye-msft  Thanks a lot

Hi, can you explain what did you do? I have the same two sql files.

First of all you need to create databases from these two sql files through MS SQL server studio. 

 

Open MS SQL server studio on your computer and you'll get a prompt to enter the Server Name. To find the server name, open SQL Server Configuration Manager by clicking on Start on your computer. In SQL Server Configuration Manager, click on SQL Server Services on the left, then on the right you should see SQL Server (either a year for version or SQL Express), double click on it, go to the Services tab, and you'll see the server name under Host field. (Remember, if you are using SQL Express version, you'll need to put \SQLEXPRESS after the host name as the server name.

 

Once this is done, and you are able to login to MS SQL Server Studio, double click on those two files and run the queries, the databases will be created.

 

Once this is done as well, use the same server name in Power BI. 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.