Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 CLR Version
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

59 Posts

Posted - 12/22/2011 :  13:39:18  Show Profile  Reply with Quote
I have sql server 2008 r2. I am new to CLR. Sqlserver always enable to use 2.0 CLR. I checked the version by the below query

select * from sys.dm_clr_properties

I would like to change it to use 3.5 version. How can I Change, please?


Edited by - madhan on 12/22/2011 14:24:14

Flowing Fount of Yak Knowledge

5155 Posts

Posted - 12/22/2011 :  14:45:38  Show Profile  Reply with Quote
.Net 3.5 uses mscorlib.dll and system.dll from the 2.0 folder under Microsoft.Net\Framework, that is why you see version 2.0.50727 when you look up that DMV. But you would be able to use the .net 3.5 features if you have it on your system.

From what I understand, SQL 2012 requires .net 4.0, and Net 4.0 has its own versions of mscorlib.dll and system.dll. So if you were to query sys.dm_clr_properties in SQL 2012, I assume you would see 4.0.30319 (or some such).

There is a little bit of information about the various .net versions and their relations to SQL CLR here, but it is a little dated:
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000