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 ...

+ Reply to Thread
Results 1 to 2 of 2

openxml - C# example please!

  1. Default 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

  2. Default 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




+ Reply to Thread

Similar Threads

  1. Help me with this SELECT FROM OPENXML
    By Application Development in forum XML SOAP
    Replies: 2
    Last Post: 07-17-2007, 08:02 PM
  2. OpenXML Writer 1.0
    By Application Development in forum XML SOAP
    Replies: 0
    Last Post: 02-10-2007, 11:57 PM
  3. OPENXML
    By Application Development in forum XML SOAP
    Replies: 4
    Last Post: 08-29-2006, 07:48 PM
  4. Re: use openxml to get xml-code?
    By Application Development in forum XML SOAP
    Replies: 0
    Last Post: 03-29-2005, 04:24 PM
  5. OPENXML
    By Application Development in forum XML SOAP
    Replies: 7
    Last Post: 03-26-2005, 01:44 PM