473,396 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Convert to XML Storage V9.1

Hi,

I need to know if my regular relational database, now in DB2 v9.1 can
be transformed to an XML database easily?

The data can very easily be represented in XML, but can I convert a
regular table into an XML table and retain Stored Procedures and
Triggers. I know that the latter would have to be modified, but how
much work is it, and is it even doable?

SS

Mar 2 '07 #1
4 2325
28******@gmail.com wrote:
Hi,

I need to know if my regular relational database, now in DB2 v9.1 can
be transformed to an XML database easily?

The data can very easily be represented in XML, but can I convert a
regular table into an XML table and retain Stored Procedures and
Triggers. I know that the latter would have to be modified, but how
much work is it, and is it even doable?

SS
That's a massive question and of course the standard answer will be "it
depends". Everything is do-able given enough this I suppose.

As a "starter for 10" however, one of the first prereqs for using PureXML
within a database is that it must be defined as UNICODE (UTF-8). Without
that, you are going to have to create a new database and migrate everything
into it. That could be a massive tasks for you : so a good first check.

In general I would not expect you to want to convert data currently in
relational format for storage as XML : it is just going to make everything
slower, and access more difficult. Where PureXML is a benefit is where
data currently has a need to be in XML format : for example, in our case,
we currently receive inbound data in XML format and shred it into
relational tables. When we get to V9 there will be real benefit in not
having to do all that shredding. However we will still need to rewrite
all existing accesses to use the XML data directly, and XQuery rather than
SQL, and we still have to evaluate the relative Cost / Benefit of doing
this.

HTH

Phil
Mar 2 '07 #2
On Mar 2, 2:47 am, Philip Nelson <team...@scotdb.comwrote:
2803s...@gmail.com wrote:
Hi,
I need to know if my regular relational database, now in DB2 v9.1 can
be transformed to an XML database easily?
The data can very easily be represented in XML, but can I convert a
regular table into an XML table and retain Stored Procedures and
Triggers. I know that the latter would have to be modified, but how
much work is it, and is it even doable?
SS

That's a massive question and of course the standard answer will be "it
depends". Everything is do-able given enough this I suppose.

As a "starter for 10" however, one of the first prereqs for using PureXML
within a database is that it must be defined as UNICODE (UTF-8). Without
that, you are going to have to create a new database and migrate everything
into it. That could be a massive tasks for you : so a good first check.

In general I would not expect you to want to convert data currently in
relational format for storage as XML : it is just going to make everything
slower, and access more difficult. Where PureXML is a benefit is where
data currently has a need to be in XML format : for example, in our case,
we currently receive inbound data in XML format and shred it into
relational tables. When we get to V9 there will be real benefit in not
having to do all that shredding. However we will still need to rewrite
all existing accesses to use the XML data directly, and XQuery rather than
SQL, and we still have to evaluate the relative Cost / Benefit of doing
this.

HTH

Phil
Thanks Phil,

Well, it sounds like I'd be better off sticking to old-fashion
relational. In fact, I can't see any situation where XML storage
(input, storage, retrieval) is of any advantage!

If someone from IBM is following this . . . Why should I (or anyone)
bother with XML at all? Even if the incoming and outgoing stuff is in
XML. It can be shredded to put into a plain relational table, and
reconstructed to XML with whatever XSD that's given?

SS

Mar 4 '07 #3
Stanley Sinclair wrote:
On Mar 2, 2:47 am, Philip Nelson <team...@scotdb.comwrote:
>2803s...@gmail.com wrote:
Hi,
I need to know if my regular relational database, now in DB2 v9.1 can
be transformed to an XML database easily?
The data can very easily be represented in XML, but can I convert a
regular table into an XML table and retain Stored Procedures and
Triggers. I know that the latter would have to be modified, but how
much work is it, and is it even doable?
SS

That's a massive question and of course the standard answer will be "it
depends". Everything is do-able given enough this I suppose.

As a "starter for 10" however, one of the first prereqs for using PureXML
within a database is that it must be defined as UNICODE (UTF-8).
Without that, you are going to have to create a new database and migrate
everything
into it. That could be a massive tasks for you : so a good first check.

In general I would not expect you to want to convert data currently in
relational format for storage as XML : it is just going to make
everything
slower, and access more difficult. Where PureXML is a benefit is where
data currently has a need to be in XML format : for example, in our case,
we currently receive inbound data in XML format and shred it into
relational tables. When we get to V9 there will be real benefit in not
having to do all that shredding. However we will still need to rewrite
all existing accesses to use the XML data directly, and XQuery rather
than SQL, and we still have to evaluate the relative Cost / Benefit of
doing this.

HTH

Phil

Thanks Phil,

Well, it sounds like I'd be better off sticking to old-fashion
relational. In fact, I can't see any situation where XML storage
(input, storage, retrieval) is of any advantage!

If someone from IBM is following this . . . Why should I (or anyone)
bother with XML at all? Even if the incoming and outgoing stuff is in
XML. It can be shredded to put into a plain relational table, and
reconstructed to XML with whatever XSD that's given?

SS
I didn't suggest that the XML wasn't worth considering : in fact we have
been storing the inbound XML documents on our system "whole" as well as
shredding them, because we believe there are immense benefits to be had
from converting once we get our systems up to V9.

Shredding is a very costly process in terms of processing power. So
eliminating that from the mix will give us a lot of savings.

Phil
Mar 4 '07 #4
Stanley Sinclair wrote:
On Mar 2, 2:47 am, Philip Nelson <team...@scotdb.comwrote:
>2803s...@gmail.com wrote:
>>Hi,
I need to know if my regular relational database, now in DB2 v9.1 can
be transformed to an XML database easily?
The data can very easily be represented in XML, but can I convert a
regular table into an XML table and retain Stored Procedures and
Triggers. I know that the latter would have to be modified, but how
much work is it, and is it even doable?
SS
That's a massive question and of course the standard answer will be "it
depends". Everything is do-able given enough this I suppose.

As a "starter for 10" however, one of the first prereqs for using PureXML
within a database is that it must be defined as UNICODE (UTF-8). Without
that, you are going to have to create a new database and migrate everything
into it. That could be a massive tasks for you : so a good first check.

In general I would not expect you to want to convert data currently in
relational format for storage as XML : it is just going to make everything
slower, and access more difficult. Where PureXML is a benefit is where
data currently has a need to be in XML format : for example, in our case,
we currently receive inbound data in XML format and shred it into
relational tables. When we get to V9 there will be real benefit in not
having to do all that shredding. However we will still need to rewrite
all existing accesses to use the XML data directly, and XQuery rather than
SQL, and we still have to evaluate the relative Cost / Benefit of doing
this.

HTH

Phil

Thanks Phil,

Well, it sounds like I'd be better off sticking to old-fashion
relational. In fact, I can't see any situation where XML storage
(input, storage, retrieval) is of any advantage!

If someone from IBM is following this . . . Why should I (or anyone)
bother with XML at all? Even if the incoming and outgoing stuff is in
XML. It can be shredded to put into a plain relational table, and
reconstructed to XML with whatever XSD that's given?
Stanley,

XML storage shines when your schema fluctuates.
I.e. when you keep adding/dropping/changing columns to your table to a
point where you feel it to be unnerving that's a pretty good indicator.
A very good example are taxes. Every year rules change.
XML thrives on schema-evolution.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Mar 5 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: mprocopio | last post by:
Fellow JavaScripters, I am looking for code or implementation ideas for converting an integer variable to a four-byte array. I'm porting some of my code from C#, where I make use of their...
13
by: Hako | last post by:
I try this command: >>> import string >>> string.atoi('78',16) 120 this is 120 not 4E. Someone can tell me how to convert a decimal number to hex number? Can print A, B, C,DEF. Thank you.
17
by: cpptutor2000 | last post by:
Could some C guru help me please? A byte is an unsigned char in C. How do I convert from a C string to a corresponding byte array. Any help would be greatly appreciated.
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Group, After a long week end I am back again. Its nice and refreshing after a short vacation so lets get started with .NET once again. Today we will discuss about Isolated Storage. This is...
5
by: 2redline | last post by:
I am trying to write a query in access that will pull results that are in the database in a text field and convert to where I can get a average including decimals. Any Ideas? ...
5
by: Bob Homes | last post by:
In VB6, foreground and background colors of controls had to be assigned a single number. If you knew the RGB values for the color, you still had to convert them into the single number accepatable...
28
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I convert a Number into a String with exactly 2 decimal places?...
14
by: rtillmore | last post by:
Hello, I did a quick google search and nothing that was returned is quite what I am looking for. I have a 200 character hexadecimal string that I need to convert into a 100 character string. ...
3
by: deshaipet | last post by:
Hi Friends, Is it possible to convert SMS tablespace to a DMS tablespace with Automatic Storage ? Please, let me know the chances. Thanks Pandith
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.