Is FOR XML EXPLICIT still an accepted technique?

From: John Kotuby (jkotuby_at_snet.net)
Date: 07/14/04

  • Next message: Ally Parker: "RE: Importing XML data into a SQL Server database"
    Date: Wed, 14 Jul 2004 10:50:41 -0400
    
    

    I have inherited (someone else built it) an ASP IIS site attached to a SQL
    Server 2000 database. It is quite a large web site job and I don't want to
    rewrite it in .NET. I don't have the time to do that and I am not familiar
    with .NET. Our company still uses VB6 for our products.

    The remote site allows the user to select recordsets which currently can be
    emailed as HTML or TEXT and also downloaded in an Excel (XLS) file. My job
    is to create XML from the recordset, transmit it to the client browser
    (which is part of a VB program) and have the client program load it into the
    local SQL Server database.

    I am new at using XML and have done considerable reading (my head hurts).
    Some of the books are a couple years old. The recordsets are composed of
    header records from the main table and child records (one to many) from 3
    other tables.

    I am leaning toward using FOR XML EXPLICIT in conjunction with ADODB stream
    sent to the Response object. I have gotten a simple FOR XML AUTO program to
    work properly and send the stream back to the browser, but now I need to
    shape the more complicated XML properly.

    I just want to make sure that the FOR XML EXPLICIT will not become "legacy"
    code in the next few years. I have looked at using XML Views briefly, but do
    not like the setup required on the SQL server to use them. It will be a
    hosted remote server that houses the IIS ASP code and the SQL database.

    So before I spend weeks writing and debugging the process, I want to make
    sure I haven't missed some spectacular new, reliable and "easy" method of
    accomplishing the same thing.

    Also I plan on using the Transact/SQL OPENXML function to write the
    resulting XML to the database at the client site.

    There is one other problem. Using the ADODB stream sent to the Response
    object results in the XML remaining "hidden" (such that a blank page appears
    in the browser) which is fine....except I don't know how to access it. I
    have experience using XML data islands (in HTML pages) to populate SQL
    Server and also opening XML files on disk and writting to SQL Server.

    Thanks for your help in advance....


  • Next message: Ally Parker: "RE: Importing XML data into a SQL Server database"

    Relevant Pages

    • RE: Backups have Shadow Copy Problems
      ... and restarted the server. ... suggested and changed the recovery model to simple on the one database called ... I understand the issue to be: the backup task failed ... You back up data from a volume that contains a Microsoft SQL Server ...
      (microsoft.public.windows.server.sbs)
    • Re: upsizing to sql 2005
      ... the word SERVER in it, ... You can access to the database by multiple means (Access, ... and how does it update the SQL database with the new records in Access? ... Query Name: Arcadia - ARC ...
      (microsoft.public.access.queries)
    • Re: Linked Tables in Access
      ... any use of SQL Passthru, Linked Tables or any other use of MDB / MDE ... server, or would I also need to convert *those* queries to passthrough ... I've been trying to understand why Access database files become corrupt. ...
      (microsoft.public.access.adp.sqlserver)
    • Re: Leveling by ID vs. "Standard"
      ... of this trade called Project Management. ... a database for the "Project Tables," ... to write reports on data from the server database. ... product supporting queries created with SQL. ...
      (microsoft.public.project)
    • Re: Trouble Getting VS.Net 2003 WalkThroughs MSDE Connection
      ... Config Tool of SQL Server? ... > link to download the PUBs database. ... >>> Setup and they directed me to install MSDE and they attached a ...
      (microsoft.public.sqlserver.msde)

    Loading