SQLCLR_ASSEMBLY Wait Type in SQL Server

⏳Part of the SQL Server Wait Types Library, every wait type explained.Related deep dive: SOS_SCHEDULER_YIELD Wait TypeRelated pillar: Performance & Troubleshooting

Is It a Problem?

Rarely. It is not a known contention point, and it was zero on our SQL Server 2025 lab. Get Wait Statistics does not filter it out, so if it ranks, you will see it.


What It Means

Microsoft’s definition: it occurs while waiting for access to the loaded assembly list in the appdomain. One example is while reading the information for a CLR user-defined type. It is bookkeeping in the CLR hosting layer, next to SQLCLR_APPDOMAIN.


When It Does Matter

If it rises, it usually comes with assemblies being loaded in bursts, after a deployment or when an application domain restarts, and the question is the same as for SQLCLR_APPDOMAIN: why is the domain cycling? The error log’s application domain messages answer that. The baseline to monitor is those messages staying rare.


The CLR Family

These are the SQL CLR waits: CLR worker threads idling, and the work of loading assemblies and application domains. Most are commonly filtered as benign. If one is near the top of your waits, start from the waits that usually matter instead.

  • CLR_AUTO_EVENTAuto-reset event. A CLR task waiting on an auto-reset event; long waits are typical.Usually noise
  • CLR_MANUAL_EVENTManual-reset event. A CLR task waiting on a manual-reset event.Usually noise
  • CLR_SEMAPHORESemaphore. A CLR task waiting for a semaphore.Usually noise
  • SQLCLR_APPDOMAINApp domain startup. Waiting for a CLR application domain to finish starting.Worth a look when it climbs
  • SQLCLR_ASSEMBLYAssembly list. Waiting for access to the loaded assembly list in the app domain.Usually noise. This page.
  • ASSEMBLY_LOAD and assembly waitsAssembly loading. Exclusive access while an assembly loads.Usually noise

Where To Go Next

SQLCLR_ASSEMBLY is background noise on a healthy instance. If you are chasing a real problem, start with the waits that cost you time.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *