to add your ADF to Azure SQLMI using a system managed identity: 1. go to
your Azure Data Factory blade in Azure Portal and enable Managed
Identity 2. use SQL SSMS to connect to Azure SQLMI with Entra Admin ID
that you set when you created Azure SQLMI 3. add ADF MSI service name
(this is the name of ...
@JSBSF You are definitely solving a different problem than I am trying
to. 🙂 I am glad you found a solution that works. You can do what you
need by comparing used vs. allocated, whereas I need to compare
allocated vs MAXSIZE and they just don't make the latter available via
TSQL for user databases ...
Also I should mention that if you are comparing to the stats displayed
on Azure portal, if you shrinkdatabase Azure will reflect the change
pretty quickly. This query will take a few minutes to update the sizes.
It's as if there is some polling or something going on, and while I was
shrinking databa...
I just checked. I had modified the query to look like this instead, and
this is the one I was eventually using: SELECT rs2.database_name,
rs2.storage_in_megabytes , rs2.allocated_storage_in_megabytes,
allocated_storage_in_megabytes - storage_in_megabytes differenceFROM
sys.resource_stats rs2JOIN (SE...
Latest Comments