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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
mfernandezcdp
New Member

POWER BI WITH SQL SERVER

Good afternoon, I wanted to ask you if there is a way to connect a SQL SERVER database with power bi online (without having to do it with POWER BI desktop). If it can't be done, I wanted to know, if by creating the table in power bi desktop (linking it with local sql server) and then publishing it in the web portal, there is a way for it to update automatically. I await your reply. Thanks a lot

1 ACCEPTED SOLUTION
JosefPrakljacic
Solution Sage
Solution Sage

If I understand you correctly, you want to connect an on-premise SQL server with Power BI?

You could create a DataFlow and then create a report based on that. In my opinion, you would not have to rely on Power BI Deskop.

But I would still recommend you to use Power BI Desktop.

In order to keep the data set up to date, you need a gateway. You can find information on this here.

 

Please don't forget to give a 👍 and accept the post as solution. (If it helped 😅)
Have a nice day!

BR,
Josef
Graz - Austria

View-my-LinkedIn-profile-image-3-300x140.png.png

View solution in original post

2 REPLIES 2
v-robertq-msft
Community Support
Community Support

Hi, @mfernandezcdp 

According to your description, you want to connect to SQL Server database in Power BI Service instead of desktop. I think you can go to “Get data”->” Published dataset” to connect to another dataset that uses Directquery to connect to the SQL Server database. But the prerequisite is that you have configured the gateway for the data source in this workspace. Then you can create a report and display the newest data on it.

If you don’t have access to any dataset using Directquery to connect to the SQL Server database, you can take the advice of JosefPrakljacic to create a Data Flow connecting to the SQL Server database, which is also a possible way to achieve this.

 

Best Regards,

Community Support Team _Robert Qin

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

JosefPrakljacic
Solution Sage
Solution Sage

If I understand you correctly, you want to connect an on-premise SQL server with Power BI?

You could create a DataFlow and then create a report based on that. In my opinion, you would not have to rely on Power BI Deskop.

But I would still recommend you to use Power BI Desktop.

In order to keep the data set up to date, you need a gateway. You can find information on this here.

 

Please don't forget to give a 👍 and accept the post as solution. (If it helped 😅)
Have a nice day!

BR,
Josef
Graz - Austria

View-my-LinkedIn-profile-image-3-300x140.png.png

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.