Skip to content

Instantly share code, notes, and snippets.

@ghotz
Created October 28, 2022 15:07
Show Gist options
  • Save ghotz/64a42f564cb46e446804dde4bea2748b to your computer and use it in GitHub Desktop.
Save ghotz/64a42f564cb46e446804dde4bea2748b to your computer and use it in GitHub Desktop.
SQLCLR troubleshooting
select left(appdomain_name, 19) as appdomain_name, [state]
, sum(total_allocated_memory_kb) / 1024. AS total_allocated_memory_MB
, sum(survived_memory_kb) / 1024. as survived_memory_MB
from sys.dm_clr_appdomains
group by left(appdomain_name, 19), [state]
--select * from sys.dm_clr_properties
--select * from sys.dm_clr_appdomains
--select * from sys.dm_clr_loaded_assemblies
--select * from sys.dm_clr_tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment