473,395 Members | 1,474 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,395 software developers and data experts.

XML Data Processing

Hello everyone. I need help regarding the following:

Given the following table:
CREATE TABLE T1 (C1 nvarchar(10), C2 money)

INSERT INTO T1 VALUES ('A',1)
INSERT INTO T1 VALUES ('B',2)
INSERT INTO T1 VALUES ('C',3)

let's say that i have this table in a local server and i want to upload
it to a remote server and in the remote server upload it to a database
that contains the same table.

the uploading part can be done by another application in the remote
server, but i want i need is a way to transfer the data at the fastest
possible way.

what steps do i need to follow?

tia,

Rey Guerrero

Dec 30 '05 #1
10 1779
Hi Rey

The answer will depend on if you want to keep the data synchronised between
the two servers or not? If not then you can have an upload working on the
remote server in parallel to yours. If they have to be syncronised then you
may want to look at replication. It may also depend on the accessibility of
the remote server and the connection between them.

John

"_(d)IEGO" <re**********@hotmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hello everyone. I need help regarding the following:

Given the following table:
CREATE TABLE T1 (C1 nvarchar(10), C2 money)

INSERT INTO T1 VALUES ('A',1)
INSERT INTO T1 VALUES ('B',2)
INSERT INTO T1 VALUES ('C',3)

let's say that i have this table in a local server and i want to upload
it to a remote server and in the remote server upload it to a database
that contains the same table.

the uploading part can be done by another application in the remote
server, but i want i need is a way to transfer the data at the fastest
possible way.

what steps do i need to follow?

tia,

Rey Guerrero

Dec 30 '05 #2
John,

Thank you for your response.

this table contains transaction records so each transaction will be
stored locally and at a pre-defined interval newly added transactions
will be uploaded to the remote server. so it is not that important that
they are synchronized all the time. your first suggestion seems to fit
what I need. How can I achieve this? Do I have to perform data
trasformation before sending the file? If so, how is it done and how do
I process it at the remote side?

tia,

Rey Guerrero

Dec 30 '05 #3
Hi Rey

Which suggestion was that?

Check out http://www.perfectxml.com/articles/XML/ImportXMLSQL.asp on ways to
import XML data into a database.

You can either use the same process on both servers (the source file would
have to be available to both machines) or create a job that refreshes the
remote server from the uploaded data in your remote database from the table
in the local database. This could be a DTS task or you can set up
replication to do it.

John

"_(d)IEGO" <re**********@hotmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
John,

Thank you for your response.

this table contains transaction records so each transaction will be
stored locally and at a pre-defined interval newly added transactions
will be uploaded to the remote server. so it is not that important that
they are synchronized all the time. your first suggestion seems to fit
what I need. How can I achieve this? Do I have to perform data
trasformation before sending the file? If so, how is it done and how do
I process it at the remote side?

tia,

Rey Guerrero

Dec 30 '05 #4
John,

Thanks for the link.

Please tell me if I am correct. First I have to export the data to XML
on the local server then do an FTP to the remote server then process
the uploaded XML file there. If so, will this approach be fast if I set
the upload at a 30-minute interval and let's say that there is an
average of 20 transactions per minute?

Rey Guerrero

Dec 31 '05 #5
Hi Rey

You have not said enough about how the systems are connected and how the
data is stored to give a specific answer.

If you receive an XML file to process you can copy (or have the same file
sent) to the remote server which can upload it using the same application
that is on your local server. The is no need to export the data from the
local database unless there is some processing that means that it would
either require the remote system to do too much work, or the remote system
does not have all the information to process the file correctly.

If you do need to process the data locally and then send the modified data
to your remote system, then your time scales may indicate that replication
would be a suitable option. As the local and remote tables are the same
structure there is no need to use XML as an intermediate format, you may
want to look at creating a DTS (Data Transformation Services) task to
export/import the data. If you only have FTP access to the remote system
then you will need a scheduled DTS task on each system a task on the local
system to export/ftp the data and a task on the remote system to check for
new data files and load them up. Check out books online and
http://www.sqldts.com/default.aspx for more information on DTS.

There are other options such as writing a web service and SQL 2005 makes
this easier to host, but that may be more than you actually need.

John

"_(d)IEGO" <re**********@hotmail.com> wrote in message
news:11********************@g43g2000cwa.googlegrou ps.com...
John,

Thanks for the link.

Please tell me if I am correct. First I have to export the data to XML
on the local server then do an FTP to the remote server then process
the uploaded XML file there. If so, will this approach be fast if I set
the upload at a 30-minute interval and let's say that there is an
average of 20 transactions per minute?

Rey Guerrero

Dec 31 '05 #6
John,

Data from the local server has the same structure as the data in the
remote server except that the data in the remote server will have an
extra column for LOCATION_CODE.

Yes, FTP is the access to the remote system.

Thanks.

Rey

Dec 31 '05 #7
HI Rey

It sounds like DTS and have export/import processes is probably the way to
go then. You can either add the extra location code on export or give it a
default so it will have the value when you import.
John

"_(d)IEGO" <re**********@hotmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
John,

Data from the local server has the same structure as the data in the
remote server except that the data in the remote server will have an
extra column for LOCATION_CODE.

Yes, FTP is the access to the remote system.

Thanks.

Rey

Dec 31 '05 #8
John,

Thanks for your patience. But I still have some questions :)

What data format do you suggest I should export the data to? And is DTS
the only way to achieve what I need?

Rey

Jan 1 '06 #9
Hi

DTS can export into to multiple formats although a text file will probably
be the best for this instance. There are other tools such as BCP, but within
a DTS package you can produce workflow, error handling and conditional
handling within the same package. The packages themselves can be developed
and tested on one server and then transferred to their destination.

http://www.sqldts.com/default.aspx is a great site for resources and the
examples it has will save you time when developing your own solution.

John

"_(d)IEGO" <re**********@hotmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
John,

Thanks for your patience. But I still have some questions :)

What data format do you suggest I should export the data to? And is DTS
the only way to achieve what I need?

Rey

Jan 1 '06 #10
John,

I will try the suggested solution.

Thanks.

Rey

Jan 2 '06 #11

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

Similar topics

8
by: ml | last post by:
My employers currently use Access for processing large volumes of data for reporting and simple modelling, which involves a lot of make table/update queries etc. I have been asked to work on a...
3
by: Shmulik | last post by:
I have an application written in C# that creates a queue of items to process, connects via a TCP connection to a server on a Unix box, and then passes data files to the Unix box for processing...
0
by: bpo_ccs | last post by:
We are into BPO and Software development business for past six and half years. We are looking for the following any kind of business from your end. Back Office Process Data Entry, Large Volume...
5
by: dmoran21 | last post by:
I am working with some files that I need to do some processing with. Essentially, these files contain rainfall reports from various automated rain gauges. These reports are given in 15 minute...
18
by: Joel Hedlund | last post by:
Hi! The question of type checking/enforcing has bothered me for a while, and since this newsgroup has a wealth of competence subscribed to it, I figured this would be a great way of learning...
8
by: CedricCicada | last post by:
Greetings! Here's my script: ######## start of script class ScannerCommand: taskName = '' scanList = def __init__(self):
14
by: Bob Nelson | last post by:
Does the current ISO standard for the C Programming language mention the term ``computer'' anywhere in the document? The ``Committee Draft'' dated January 1999 refers to only to a ``data processing...
2
by: colin | last post by:
Hi, Im tidying up some code ive written wich atm is all in the main form. its working reasonably well, uses zedgraph wich is nice, but i need to tidy it up as its become increasingly difficult...
1
KevinADC
by: KevinADC | last post by:
Introduction In part one we discussed the default sort function. In part two we will discuss more advanced techniques you can use to sort data. Some of the techniques might introduce unfamiliar...
0
by: tavares | last post by:
(Our apologies for cross-posting. We appreciate if you kindly distribute this information by your co- workers and colleagues.) ...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.