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

 All Forums
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 CLR Version

Author  Topic 

madhan
Yak Posting Veteran

59 Posts

Posted - 2011-12-22 : 13:39:18
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?

Thanks!

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2011-12-22 : 14:45:38
.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: http://www.sqlskills.com/BLOGS/BOBB/post/On-SQL-Server-and-NET-40.aspx
Go to Top of Page
   

- Advertisement -