SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

madhan
Starting Member

32 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?

Thanks!

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

sunitabeck
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: http://www.sqlskills.com/BLOGS/BOBB/post/On-SQL-Server-and-NET-40.aspx
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.06 seconds. Powered By: Snitz Forums 2000