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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. 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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.