Re: Inserting XML String to a Text datatyped column

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Michael Rys [MSFT] (mrys_at_online.microsoft.com)
Date: 02/20/04


Date: Fri, 20 Feb 2004 00:17:51 -0800

In SQLServer 2000, you can only send this back via OLEDB/ADO. So if you want
to get this into the server, you either write an ADO/OLEDB program that
retrieves and sends it back or use the sp_OA stored procedures to drive it
from within a stored procedure.

In Yukon, you will be able to store it as either a string or XML datatype
directly.

Best regards
Michael

"Varma Alluri" <Varma.Alluri@Ultralink.com> wrote in message
news:12aa901c3f721$30b62250$a301280a@phx.gbl...
> Hi SQL Gurus,
>
> I have an XML question to which I am kind of new.
>
> I have an XML string that I get by using a query similar
> to the following....
>
> SELECT 1 AS Tag,
> NULL AS Parent,
> NULL AS [Zip_ROOT!1!],
> NULL AS [Zip!2!Value!element],
> NULL AS [Zip!2!State!element]
> FROM ZipCodes
> UNION
> SELECT 2,
> 1,
> NULL,
> Zip,
> State
> FROM ZipCodes where id < 3
> FOR XML EXPLICIT
>
> This returns an XML string, which is very long. I need to
> take this string and INSERT/UPDATE to a Text column in a
> table.
>
> Any kind of help in this regard will be grately
> appreciated.
>
> Regards,
> Varma
>
>



Relevant Pages

  • Re: Stream.Write / Encoding problem
    ... I would test converting xml string to base64 and sending that then ... request and you at least has a starting point. ... > request stream and write my XML string to it. ...
    (microsoft.public.dotnet.framework)
  • RE: XML as a WebService parameter
    ... \par From your description, you have an ASP.NET webservice which has a webmethod accepting a XML string parameter, and you'll get validation error when you call the webservice, correct? ... \par Generally, for XML webserivice, since its underlying message is encoded via SOAP XML, therefore, we should not directly pass parameter or return value of raw XML string content. ... \par Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.webservices)
  • WriteXml, DateTime, and Timezone data
    ... I am then passing this string back to a PowerBuilder module that is taking this XML string and doing what it needs to do with it. ... the TimeZone portion? ...
    (microsoft.public.dotnet.xml)
  • XML reading database null value as an empty string ""
    ... I am using the XMLTextWriter to build an XML string and pass it to the ... When I get the data from SQL Server, ... varchar fields so I can get a NULL value rather than the empty string? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: xml.modify insert with sql:variable
    ... Best regards ... I have a stored procedure which gets an xml string and a Id ...
    (microsoft.public.sqlserver.xml)