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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Tom_Y
Advocate II
Advocate II

Sample public SQL database for learning purpose

This is a silly question, but that's the situation.

I want to have a taste on how Power BI extract data from any SQL database, not just from excel in sharepoint...

Any suggestion where I can find some secure, safe, and easy public SQL database for testing?

ChatGPT suggests this one but it seems my home IP cannot pass through its firewall.

Thanks for the advice.

  1. SQL Server Settings:

    • Server: azuresql.database.windows.net
    • Database: AdventureWorks
    • Username: readonly_user
    • Password: readonly_password
1 ACCEPTED SOLUTION
hnguy71
Super User
Super User

Hi @Tom_Y 
You can set up a SQL server locally and connect either SSMS or Power BI to it.


Download the Developer version of SQL Server and install: 
SQL Server Downloads | Microsoft 

Follow these steps to download and restore AdventureWorks locally:
https://learn.microsoft.com/en-us/sql/samples/adventureworks-install-configure?view=sql-server-ver16...

 

Then all that's left is to connect to the server (once it's ran) and use the server name as LOCALHOST. You may also need to add the port number too but typically you don't have to. And for the DB name it'll be the AdventureWorks db restored version.

 

It's been a while since I did this but should still be very valid.



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

Hi @Tom_Y 

 

SQLBI has a contoso dataset generator which can generate a BAK file. You will need a server in order to access the contents of it.

https://www.sqlbi.com/blog/marco/2024/07/25/announcing-contoso-data-generator-v2/

 

Google big query has some public databases as well which be added to a model via Direct Query.

https://cloud.google.com/bigquery/public-data 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
hnguy71
Super User
Super User

Hi @Tom_Y 
You can set up a SQL server locally and connect either SSMS or Power BI to it.


Download the Developer version of SQL Server and install: 
SQL Server Downloads | Microsoft 

Follow these steps to download and restore AdventureWorks locally:
https://learn.microsoft.com/en-us/sql/samples/adventureworks-install-configure?view=sql-server-ver16...

 

Then all that's left is to connect to the server (once it's ran) and use the server name as LOCALHOST. You may also need to add the port number too but typically you don't have to. And for the DB name it'll be the AdventureWorks db restored version.

 

It's been a while since I did this but should still be very valid.



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.