Need to process data on one server, utilize it on another server ... can it be done?

This is a discussion on "Need to process data on one server, utilize it on another server ... can it be done?" within the Classic ASP section. This forum, and the thread "Need to process data on one server, utilize it on another server ... can it be done? are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 5th, 2005, 18:01
New Member
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Need to process data on one server, utilize it on another server ... can it be done?

Ok, I'm so hoping there's an ASP solution for this one. I have data from an Oracle database table on Server 1. I need to be able to process that data through a loop, and process it on a completely different server to process e-mails for that data. I tried doing an "include", but it doesn't work. Is there a possible way to process data from one server's database by another server's web page? Can I connect to it over the web with a URL from one server?
Just to see what I was trying to do, here was the code on Server 1 (the server where the primary data is) ... I'm trying to loop through the data and call the procedure on server 2 that actually sends e-mails out. (And don't ask why I don't just use e-mailing services through ASP on Server 1 ... spam filters and so much is preventing me from sending e-mails from there) ...
Anyway, here is the file on Server 1:
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open &&&DATABASE LOGIN&&&
sqlmail="SELECT * FROM emails WHERE send_status = 'N'"
set rsmail=conn.execute(sqlmail)
Do while not rsmail.eof
ThisId=rsmail("email_id")
SendTo=rsmail("email_to")
SendFrom=rsmail("email_from")
Subject=rsmail("email_subject")
TheEmail=rsmail("email_body")
<!--#include file="http://www.server.com/process_mailer_engine.asp" -->
sqlupdate="UPDATE emails SET send_status = 'Y', send_date = sysdate WHERE email_id = " & ThisId
set rsupdate=conn.execute(sqlupdate)
rsmail.MoveNext
Loop
%>

The include file on the other server (in this case, dummied as www.server.com) simply calls the mailer engine and passes the variables through to send mail ... I'm basically trying to use the variables from the Server 1 page on the Server 2 page.
I have a feeling I can do something like this, but I'm going about it the wrong way. Or if I can have a page on Server 2 that can call the database on Server 1 somehow ... any help would be so greatly appreciated, I'm up against a deadline on this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 6th, 2005, 00:58
Anonymous User
Guest
Posts: n/a
Re: Need to process data on one server, utilize it on another server ... can it be done?

You can't do an "include" or "include virtual" across servers (or domains) - that would be a big security loophole if you could. I'm not familiar with connecting to Oracle, but in a DB like MS SQL Server, you can connect to a remotely hosted database via TCP/IP (if allowed thru your firewall).

Why don't you run the code on the Oracle server network and just use an external SMTP server? Make sure your SMTP has adequate permissions/firewall settings.

If you have legitimate access to the Oracle box, you could write a web service on the server, and consume that from a remote client.

Just some observations...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
process, data, server, utilize, done

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Design suggestions for representing data from SQL server DB...? Borf Website Planning 1 May 25th, 2007 18:02
URGENT!!!! Send HTTP request from one web server to another server chandra.nowduri ASP.NET Forum 1 Aug 7th, 2006 19:18
XML Code for transfering data from one SQL Server Database to another database plolla Other Programming Languages 1 Aug 3rd, 2006 18:37
XP as Server jgbarber65 Hosting & Domains 1 Dec 3rd, 2005 16:43


All times are GMT. The time now is 14:07.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42