SQL to XML File
- From: "shank" <shank@xxxxxxxxxxxxxxx>
- Date: Sun, 2 Sep 2007 09:58:08 -0400
Anyone here that also uses ASP pages? I have a stored procedure that creates
XML content the way I want it using FOR XML AUTO, ELEMENTS. At least when I
run the query anyway. What I want is to use that SP in an ASP page. When
opened, I want a dialog box to pop up with the option to open or save as...
to the client's HDD. Here's my header for the page. The recordset is below
that. When I open the page, I get the Save As.. I want, but no records are
saved.
What I'm missing is how to deal with XML and the recordset thereof. It's
more of a feed that a recordset. How do I get that feed into a file on the
client machine?
<% Response.contenttype = "application/vnd.xml" %>
<% Response.AddHeader "Content-Disposition", "filename=Product.xml" %>
thanks
.
- Follow-Ups:
- Re: SQL to XML File
- From: Marc Gravell
- Re: SQL to XML File
- From: Marc Gravell
- Re: SQL to XML File
- Prev by Date: Re: create xsd file?
- Next by Date: Re: SQL to XML File
- Previous by thread: Re: create xsd file?
- Next by thread: Re: SQL to XML File
- Index(es):
Relevant Pages
|