Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Kusto: How Do I Find all Databases which have a Table by its name within a Kusto Server

I have a Kusto server. The server has multiple Databases.
I have a Table name, let’s say Table1. But I don’t know which database or databases have that table.
Is there a Kusto query to achieve this?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

.show databases schema

.show databases schema 
| where isempty(ColumnName)
| where TableName == "Customers"
DatabaseName TableName ColumnName ColumnType IsDefaultTable IsDefaultColumn PrettyName Version Folder DocString
ContosoSales Customers false false

Fiddle


Following the OP question:

.show databases schema 
| take 5
  • The 1st row describes the database
  • The 2nd row describes the table
  • The other rows describe the columns
DatabaseName TableName ColumnName ColumnType IsDefaultTable IsDefaultColumn PrettyName Version Folder DocString
Samples false false v3333.3
Samples StormEvents false false Storm_Events US storm events. Data source: https://www.ncdc.noaa.gov/stormevents
Samples StormEvents StartTime System.DateTime false false
Samples StormEvents EndTime System.DateTime false false
Samples StormEvents EpisodeId System.Int32 false false

Fiddle

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading