Re: XML file to Database

From: Tom Moreau (tom_at_dont.spam.me.cips.ca)
Date: 02/04/05


Date: Fri, 4 Feb 2005 18:13:59 -0500

Is it that you want to store the XML into a single column in a table or do
you want to shred the document? If you want to store the whole thing in a
single document, sue a varchar, nvarchar, text or ntext as appropriate. If
you want to shred it, check out:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsqlpro01/html/sql01c5.asp

-- 
   Tom
----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON   Canada
www.pinnaclepublishing.com
.
"Emma" <Emma@discussions.microsoft.com> wrote in message 
news:90762FB5-E462-4AB9-9BD9-FA44E6B4DC19@microsoft.com...
I have a database application that stores configuration information in an 
XML
file on the user’s desktop/laptop. If the user’s computer crashes, the
configuration information is lost. In addition, the user can’t work on any
other computer. When they do, they end up using the configuration on that
computer.
I want to store this information in the database so that the user can work
from any work station and still retrieve their configuration information. 
How
can I read the XML file into a database? I want to write a separate 
procedure
to read all XML file into a database. The columns in the file will be
something like this:
UserID VARCHAR(30)
ConfigurationID VARCHAR(10)
ConfigurationData IMAGE
Thanks


Relevant Pages

  • Re: GET MENU ITEM VALUE
    ... menu item on the fly and store a reference key in a hashtable or something. ... > The problem is that I am using an XML file to store the menu Item names so ... It is much easier to add it to an XML ... > changed information in it. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Novice: AdBanner Control with XML file?
    ... XML is text-based format. ... So, to store binary datta u need to encode it, generaly, in Base64 encoding. ... Use XmlTextWriter.WriteBase64an XmlTextReader.ReadBase64to set/get your encoded images ... P> not figure out how do you store the graphic image in an xml file. ...
    (microsoft.public.dotnet.languages.csharp)
  • Anyone knows good XML writer Library
    ... in my application i want to write a XML file. ... This would typically need to store a tree like Data structure of all these ...
    (microsoft.public.vc.language)
  • Re: Image <> String Problem
    ... store the image as an XmlNode, the complete xml file looks like the ... image as a part of a larger xml file. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Wanted:MAIL.MAI structure definition
    ... exports using XML. ... SMTP mail and all the software out there which processes RFC-compliant headers ... I would maintain that to store mail messages you would need to use CLOB ... Every mail message arriving into an OpenVMS system gets its format converted. ...
    (comp.os.vms)