Re: ADO/SQL-Server LoadFromFile (XML)

From: Arthur Hoornweg (arthur.hoornweg_at_wanadoo.nl.net)
Date: 06/10/04

  • Next message: Viatcheslav V. Vassiliev: "Re: Retrive Data from Each field in a DATASET."
    Date: Thu, 10 Jun 2004 15:56:53 +0200
    
    

    Víctor Hugo Ulloa Meléndez wrote:

    > But when we close
    > MyAdoDataSet and inspects the table on the SQL-Server, it's empty!!

    Victor,

    the "loadfromfile" only loads the XML file into the ADO cursor
    engine in memory, it doesn't upload it to the server.

    If you want to upload the data to the SQL database, you must
    first set the tadoconnection.connectionobject in order to
    connect it to the database, and subsequently issue a
    "tadodataset.Updatebatch". Problem is, this will only upload the
    *changes* made to the dataset while it was offline, not the whole
    dataset. So this may not really help you!

    They call this the "briefcase model":

    - Load data from a server into a dataset
    - Disconnect the dataset from the server,
    - Make modifications to the dataset
    - then save it into a XML file
    - later, load the xml file into a dataset again
    - re-connect the dataset to the server
    - perform "updatebatch" to upload the modifications to the server.

    -- 
    Arthur Hoornweg
    (please remove the ".net" from my e-mail address)
    

  • Next message: Viatcheslav V. Vassiliev: "Re: Retrive Data from Each field in a DATASET."

    Relevant Pages

    • Re: File Upload/Download Problem
      ... constructor build the object using the input data. ... This means of course your upload routine will have to be smart enough to ... to the server and want to be able to keep it on their local PC) ... use XMLSerialization to serialize UserCase to an XML file and then have ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Loading partial Data with xmlHTTPRequest ?
      ... display a few things that requires quite a few transforms. ... I can use xmlHTTPrequest for both local or server data access. ... Now I would like to be able to load only the data ... and over again every time the XML file is requested. ...
      (comp.lang.javascript)
    • Re: How to upload big file to DB with webpage?
      ... Web form is not going to wait for 40mb byteload to complete. ... different services on your server. ... Upload the file, using your present method, to a pre-defined folder on ... If you need the user to be notified how successful the upload were, ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Clarification
      ... the user will run Generator and create an XML file. ... the user will upload that XML file using something other than ... app into a web-based or client-server application with a trusted server. ...
      (comp.lang.java.programmer)
    • Re: Picture not showing correctly
      ... and the rest is all grey. ... When you uploaded the image to the server, ... image viewer app they are fine, so I don't "upload" them anywhere, ... The images are quite big, around 3 megs, but they should still load. ...
      (alt.html)