Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updategram updates a SQL server table?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00564052
Message ID:
00564219
Vues:
16
Russell,

I am starting to make extensive use of XML Updategrams to post data to SQL Server. The first step is to install the MS XML for SQL Server download. You can get the SQL Server 2000 version at:

http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/554/msdncompositedoc.xml&frame=true

Once installed, you create a special XML virtual directory in IIS for direct HTTP posts. You also need to create an XSD or XDR schema of your SQL database. I would download the free SQL Server XML View Mapper from the MSDN site for that.

I then use Web Connects IPStuff library to do a direct HTTP post of the document. You can also user ADO to post the XML document, but I prefer the direct HTTP post to the virtual diectory. Once posted, SQL Server takes care of the rest and returns an XML string that you can parse and determine success or failure.

For more info, you can check out an overview at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml07162001.asp?frame=true

Hope this helps,

Rick Dochterman

>Once I have created an updategram (XML string), how can I use it to update a SQL server table?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform