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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
yuisyuan
Frequent Visitor

Get data from SQL Server

Hi Everyone,

I'm so confusing... after looked many articles.

I need some help, here's my questions :

1. May I use the Power BI service to get data from the SQL server? or do I need to import the SQL Server data to Power BI Desktop and publish the data to Power BI? 

2. If I have to import the SQL Server data to Power BI Desktop, the database size limit is depend on whether I have subscribed to Power BI Premium right?

 

Thank you

Yuisyuan

 

3 REPLIES 3
yuisyuan
Frequent Visitor

Hi,

Thank you guys reply!

so, when I install a gateway, I can through Power BI to get data from SQL server?

yuisyuan_0-1661743167302.png

or do I have to link the SQL server on the Power BI desktop and then publish it to Power BI?

yuisyuan_1-1661743378384.png

 

Thank you

yuisyuan

 

Burningsuit
Resident Rockstar
Resident Rockstar

Hi @yuisyuan 

Basically, when you connect to a SQL datbase in Power BI you have two options.

 

Import mode. In this mode the data from the SQL database is imported into the Datamodel, and can thn be accessed by Reports and visualisations. The maximum size of the Datamodel varies with Licence, initially with a Pro licence the maximum size is 1GB. However the data imported into the Datamodel is compressed, based on the number of repetitions in each column. So in many cases this 1GB can represent many thousands, indeed millions of records. If you do need a larger Datamodel you can use Premium Per User licences, with a max size of 100GB or Premium Capacity with a max size of 400GB.

When the data changes, you need to configure Refresh to re-import data into the datamodel, this can be done manually, or automatically at scheduled time during the day.

 

Direct Query Mode. In this mode no data is imported into the Datamodel. Rather, Power BI sends SQL queries to read data from the Database each time it is needed. This gets real-time data into Power BI (no need to configure Refresh)  and the amaount of data is not limited as it is in the Datamodel. However Power BI generates at least one SQL query for each visualisation on the report, and these are run each time the report is opened, or a visualisation is clicked on or a page selected etc. This can creat a great deal of work for the SQL database, and unless the Server is configured to cope with this extra load it may result in slow Reports and slow the SQL server, which may impact other applications that use the database.

 

You can find more information here : Dataset modes in the Power BI service - Power BI | Microsoft Docs

 

Hope this helps

Stuart

 

itchyeyeballs
Impactful Individual
Impactful Individual

If its an on-premise SQL server you will need to install a Gateway to enable the service to connect to it

https://powerbi.microsoft.com/en-us/gateway/

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors