Robert G
Robert G

Reputation: 3

Azure Synapse SQL on-demand query logs

I have a question about getting the detailed query usage logs from Azure Synapse on-demand.

With

SELECT * FROM sys.dm_external_data_processed

I can get the daily/weekly usage. It’s good.

But I need to get a result like this:

enter image description here

in a "exportable" way (TSQL or something to query and get usage details for export needs).

I've tried to google it. But with no luck.

Upvotes: 0

Views: 1341

Answers (1)

Robert G
Robert G

Reputation: 3

Ok, I found it.

On each serverless DB this query gives the details:

SELECT TOP 1000 * FROM sys.dm_exec_requests_history order by start_time desc

Upvotes: 0

Related Questions