Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What version of .Net framework ships with SQL Server 2008?

Does SQL Server 2008 ship with the .NET 3.5 CLR, so that stored procedures written in CLR can use 3.5 features?

like image 319
John Christensen Avatar asked Aug 14 '08 18:08

John Christensen


2 Answers

Actually it ships with .NET 3.5 SP1. So yes, the stored procs can use 3.5 features and libraries.

like image 132
Adam Avatar answered Oct 13 '22 00:10

Adam


I swear this isn't being pedantic, but is an important distinction -- I don't know what specifically you need when you say ".NET 3.5 CLR" -- probably the .NET 3.5 Framework? Possibly C# 3.0 language features? But the CLR that .NET 3.5 runs on is still CLR 2.0. (the link is to the same explanation re: .NET 3.0; I couldn't immediately find this info on 3.5. Actually, the best explanation of CLR vs. Framework vs. language version numbers I've yet found is on page 12 of Teach Yourself WPF in 24 Hours*)

So, my point is that you can even use the features of .NET 3.5 and C# 3.0 on SQL 2005 CLR stored procedures -- we do, at my company -- and there's not even really any trickery to it. All you have to do is have the free 3.5 framework on your server. Obviously the SQL 2005 answer isn't that relevant for your specific question, but hopefully this will be helpful to the person who eventually comes across this page via Google.

*disclosure: I'm friends with the authors

like image 22
Kevin Crumley Avatar answered Oct 12 '22 22:10

Kevin Crumley