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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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