How to get the partitions data from Azure ADX through SQL Server emulation?

2025-01-16T15:42:01.8966667+00:00

I'm looking for support regarding viewing my partition data in Azure ADX through the jdbc SQLServer emulation. By following this page (https://learn-microsoft-com.translate.goog/de-de/azure/data-explorer/sql-server-emulation-overview?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=sc), I'm building a SQLServer emulation for my data in Azure ADX. I'm using the following query to retrieve the partition details of my table ->

select distinct PARTITION_NUMBER from SYS.DM_DB_PARTITION_STATS where object_id = OBJECT_ID(?) and partition_number > 1

But I'm getting this error

There is no table '..sys.dm_db_partition_stats'

, which I couldn't understand why. Because, the partiton exist and I can view it through the query editor of Azure ADX.

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
541 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,320 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.