sys.dm_clr_properties

Posted by Jugal Shah on March 10, 2011


sys.dm_clr_properties: Returns a row for each property related to SQL Server common language runtime (CLR) integration, including the version and state of the hosted CLR.

Enabling CLR using SP_Configure doesn’t gurantee that it is initialized. To initialize CLR, you have to execute ASSEMBLY statements, CLR Routine Type or Trigger.

See below image for the output of this DMV.


Below are the different state of CLR.

  • Mscoree is not loaded.
  • Mscoree is loaded.
  • Locked CLR version with mscoree.
  • CLR is initialized.
  • CLR initialization permanently failed.
  • CLR is stopped

Check http://msdn.microsoft.com/en-us/library/ms174983.aspx link for different CLR state description.

2 Responses to “sys.dm_clr_properties”

  1. Theresa said

    How do I un-initialize CLR?

Thanks for the comment, will get back to you soon... Jugal Shah

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 175 other followers