Forum Discussion
Filter table names in a connection to a SQL Server database
- Anonymous8 years ago
Hi Raul,
Please refer to below steps to filter the tables which stored in database.
Steps:1. Connect to a database.
2. Add a filter on 'Name' column and modify the filter formula to use 'Text.StartsWith' function.(For your scenario, you should use "CUST " as keyword to filter.)
Full query:
let Source = Sql.Databases("xxxxx"), #"Filtered Rows" = Table.SelectRows(Source, each Text.StartsWith([Name],"D")) in #"Filtered Rows"BTW, please not connect too many table at one time. Large amount of tables may affect the performance and system resources.
Regards,
Xiaoxin Sheng
Hi Raul,
Please refer to below steps to filter the tables which stored in database.
Steps:
1. Connect to a database.
2. Add a filter on 'Name' column and modify the filter formula to use 'Text.StartsWith' function.(For your scenario, you should use "CUST " as keyword to filter.)
Full query:
let
Source = Sql.Databases("xxxxx"),
#"Filtered Rows" = Table.SelectRows(Source, each Text.StartsWith([Name],"D"))
in
#"Filtered Rows"
BTW, please not connect too many table at one time. Large amount of tables may affect the performance and system resources.
Regards,
Xiaoxin Sheng