Jump to content

Native XML or SQL server?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
merchz

merchz

    Newbie

  • Members
  • Pip
  • 1 posts
I am designing a system that will receive text files, convert them to XML documents and then store them in some form of database. The users of this system will then want to make queries on these documents.

So I wonder what would be best suited? Native XML seems to me like the natural choice, since it is after all XML I am storing. But I want your opinions.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
If you want to do queries, you will probably want a database. Be aware that you CANNOT search against blob fields in most databases.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I would also use a database. My question is why are you retrieving data and storing it in an actual XML file? You could retrieve the data, store it in a database and then present it as an XML document (if your need is to simply present XML files).

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
There is no need to convert to XML first. Simply pop the data straight into the database. As Jordan says, if you want to send the data in some way or something, you can always load it into XML as and when you need it. For example, an RSS feed.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#5
shokosugi

shokosugi

    Newbie

  • Members
  • PipPip
  • 10 posts
SQL Server can generate XML.

SQL Server also has a way to search text field similar to Oracle Intermedia text.

Edited by WingedPanther, 31 October 2008 - 04:38 AM.
Double post


#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Even if SQL Server couldn't convert to XML, it would be easy just to use a loop to output it.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums