all groups > dotnet xml > october 2007 >
You're in the

dotnet xml

group:

Fastest way to move XML document into and back out of CLR function


Fastest way to move XML document into and back out of CLR function DR
10/31/2007 6:41:44 PM
dotnet xml:
Fastest way to move XML document into and back out of CLR function

In SQL Server 2005 and Visual Studio 2005, what is the fastest way to pass
an xml data type variable into a C# CLR function and retrieve it back out of
the C# CLR function when the C# CLR function is done modifying it?

I tried this but get deployment error becuase SQLServer2005/CLR dotn support
System.Xml.XmlDocument:

public partial class UserDefinedFunctions
{
[Microsoft.SqlServer.Server.SqlFunction]
public static int InsertSomeNode(System.Xml.XmlDocument pDoc)
{
//
return 1;
}
};

thorws error:
Error 1 Column, parameter, or variable #1: Cannot find data type
XmlDocument. InsertSomeNode

Re: Fastest way to move XML document into and back out of CLR function Oleg Tkachenko [MVP]
11/1/2007 12:00:00 AM
[quoted text, click to view]


That's weird, Sql Server 2005 does support System.Xml
(http://support.microsoft.com/kb/922672). Post full deployment log.


--
Oleg Tkachenko [XML MVP, MCPD]
AddThis Social Bookmark Button