Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unsure on XML/ASP.net project

Status
Not open for further replies.

talon121a

MIS
Aug 21, 2003
92
US
Ok this is what im tryin to accomplish..

Can someone help me with a process I should develop?? Im not sure how to efficiently make this app.

1. Need to obtain remote XML data (ie. from a website/file.xml)

2. Have it update an SQL db, when it changes. ie. When it detects a file change, itll insert new record in SQL. (For example being able to then run queries or writing an application for web).

.... Any ideas how I should go about this perhaps references to any materials..



--------
Jason Burton
Leximedia,LLC.
jab@leximedia.net
(im confident with my spam fighting solution)
 
obtaning an XML file is easy, u could use the
HttpWebRequest object.

once u get the XML string u can use the XMLDocument Object.
after that it will be easy to make changes in the SQL server database.

the problem is in detecting the change in the XML file and then trying to execute your ASPX file. to do that would be virtually impossible (as its on a different server, even in the same server will be a problem).

you may have to use Windows Tasks or SQL Jobs...

Known is handfull, Unknown is worldfull
 
Are you aware of an SQL 2000 method? ie. a job I can run?

Ive decided to use wget. to get the xml,

Now Im tryin to figure out how to import the XML into table format (sql). (the particular node..)

XML source:

--------
Jason Burton
Leximedia,LLC.
jab@leximedia.net
(im confident with my spam fighting solution)
 
>>Are you aware of an SQL 2000 method? ie. a job I can run?

jobs are something like stored procedures. they can be created. They can be created using the "Management -> SQL Server Agent" tool...

Known is handfull, Unknown is worldfull
 
yea, Im aware it exists. But do you know of any method, I can run to import the data... I have the file downloaded now, just tryin to figure out how to convert the XML data to SQL data. ---

I decided to use wget. Then just schedule it..



--------
Jason Burton
Leximedia,LLC.
jab@leximedia.net
(im confident with my spam fighting solution)
 
lots of way to read the XML data, the best method would be to use the XMLDocument() object...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top