Unload app domains when using the SQL CLR
SQL Server has a SQLOS that manages the use of threads and memory, this includes how SQL CLR operates within SQL Server. One of the items it does is manage the app domains used by SQLCLR.
A question was raised about if it was possible to unload appdomains directly, just like you can clear the procedure and data cache. Well the poster actually answered the question him self
To unload appdomains you need to use
DBCC FREESYSTEMCACHE('ALL')
Thanks DR Network.
-