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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
chetanbi
Frequent Visitor

Read multiple SQL server tables with LIKE operator

Hi...

I have a requirement to select all the tables which have name "Sales_" in my SQL server database.

Is there a way to read all of them using LIKE operator in power query.

 

Thanks in advance for your help

 

 

1 REPLY 1
AlexisOlson
Super User
Super User

What do you mean by "select all the tables"?

 

If you mean automatically load each match to a separate query, then I don't think this is possible natively in Power BI (but you can probably do it programmatically with an external tool).

 

If you want to load all the matches into a single query by unioning/appending them together, then this should be possible in the Query Editor.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.