views:

330

answers:

3

I want to create a CLR Stored Procedure for SQL Server 2008 that references the System.Xml.Linq assembly. According to the documentation (http://msdn.microsoft.com/en-us/library/ms403279.aspx) this assembly is safe for use in SQL Server 2008.

However when I attempt to add a reference using Visual Studio 2008 (Team Suite with GDR R2 installed) this assembly is not listed as one of the available assemblies.

Does anyone know how I can add this assembly to a SQL Server CLR project?

A: 

Try to click browse, then browse to C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5.

John Saunders
Thanks but there's no 'browse' option available when adding a reference in a SQL Server Project.
Sorry, then, I don't know what the deal is.
John Saunders
A: 

I have the same problem -- except I'm using Visual Studio 2005. There doesn't seem to be any way to add the DLL/Reference to my SQL CLR project.