openxml - C# example please! - XML SOAP
This is a discussion on openxml - C# example please! - XML SOAP ; I have created a stored procedure to use OPENXML to update my SQL2000
database using an external XML file.
What I need help on is:
How to pass the XML file as a parameter to the stored procedure.
Do I ...
-
openxml - C# example please!
I have created a stored procedure to use OPENXML to update my SQL2000
database using an external XML file.
What I need help on is:
How to pass the XML file as a parameter to the stored procedure.
Do I call SqlParameter ? If yes, besides the file name, it wants to know
the dbType and size.
Can someone post the snipped of code to do that ?
Thanks in advance,
LW
-
Re: openxml - C# example please!
You need to read the data from the file on the client and pass the content
as type NTEXT (assuming the data in the file is UTF-16 encoded, otherwise
you need to convert it first) to the stored proc via SqlParameter.
Best regards
Michael
"LW" <LW@discussions.microsoft.com> wrote in message
news:010A23E5-1301-4A3D-A998-59D4709F0A74@microsoft.com...
>I have created a stored procedure to use OPENXML to update my SQL2000
> database using an external XML file.
>
> What I need help on is:
> How to pass the XML file as a parameter to the stored procedure.
> Do I call SqlParameter ? If yes, besides the file name, it wants to know
> the dbType and size.
>
> Can someone post the snipped of code to do that ?
>
> Thanks in advance,
> LW
Similar Threads
-
By Application Development in forum XML SOAP
Replies: 2
Last Post: 07-17-2007, 08:02 PM
-
By Application Development in forum XML SOAP
Replies: 0
Last Post: 02-10-2007, 11:57 PM
-
By Application Development in forum XML SOAP
Replies: 4
Last Post: 08-29-2006, 07:48 PM
-
By Application Development in forum XML SOAP
Replies: 0
Last Post: 03-29-2005, 04:24 PM
-
By Application Development in forum XML SOAP
Replies: 7
Last Post: 03-26-2005, 01:44 PM