XML in DataBase



We need to store an entire XML document intact (not breaking the
document
into relational data).

We have been attempting to submit the data into a text field within SQL

Server 2000 via an updategram, but the data will only send in under
4000
characters worth of data (and the XML file will be between 9K and 20K
in
size).


The question is, should we store the XML file inside a text field, or
is it
better to store the xml data as a file in the file system (and a link
within
the SQL database to the file). The XML file doesn't require parsing, or

modification.


If we store the data in the database, then we are having to deal with
the
issue of performance and also the fact we haven't been able to get a
large
xml file into the database successfully.


If we store the data in a file with a link in the database, then we
will be
extra concerned about potential problems if the file is inadvertently
deleted while the database entry still exists.


Any suggestions?

.



Relevant Pages

  • Re: SQL SERVER
    ... It's not only an Explorer problem. ... number of files you need to store: it's the same problem in every file ... Here is sample you want for why storing XML in a database: ... XML column of the table the definition you want (it's not relational any ...
    (microsoft.public.sqlserver.msde)
  • Re: DataBase
    ... > You can use XML to store the data pretty easily. ... > with ADO.net you can import or export the data to XML. ... > Andrew J. Kelly SQL MVP ... >> database, but I need it not to use any SQl server. ...
    (microsoft.public.dotnet.languages.csharp)
  • 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)
  • Re: ruby / rexml / xpath bug?
    ... puts of the XML. ... end # end each store ... Longitude: -74.107299 ...
    (comp.lang.ruby)
  • Re: RSS SQL tables
    ... optimal database structure. ... Define all the elements you want to store. ... xml does not translate well to a relational database. ...
    (comp.databases)