Current location: Hot Scripts Forums » Programming Languages » ASP » How to connect to different server - Is it possible?


How to connect to different server - Is it possible?

Reply
  #1 (permalink)  
Old 05-30-06, 03:49 PM
swaze swaze is offline
Newbie Coder
 
Join Date: Nov 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
How to connect to different server - Is it possible?

Is it possible to connect to a database on a different server? I want someone to fill out a form on one site, and have the information inserted into a database on another site.

Is this possible?
Reply With Quote
  #2 (permalink)  
Old 05-30-06, 04:33 PM
Rayden Rayden is offline
Newbie Coder
 
Join Date: May 2006
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
well usually it is connected to server: "localhost" which is the server you are hosted and to connect to another server just change this with the name server of the site. am I right?
Reply With Quote
  #3 (permalink)  
Old 05-30-06, 05:35 PM
swaze swaze is offline
Newbie Coder
 
Join Date: Nov 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
This is what I'm currently using to connect to a database on the same server:

Connection_STRING = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("small_business/small_business_entry.mdb")

How can I change this to connect to a database on a different server?
Reply With Quote
  #4 (permalink)  
Old 05-30-06, 07:38 PM
koncept
Guest
 
Posts: n/a
i have never seen one that worked correctly. your best bet would be to post the data in the for to a script on the other site to insert into the database
Reply With Quote
  #5 (permalink)  
Old 05-31-06, 06:46 AM
Rayden Rayden is offline
Newbie Coder
 
Join Date: May 2006
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
oh you are talking of msacess database...I thought it was mysql...sorry cannot help on that...and I never see one work either since I use only mysql...
but I think you should change this part:

Server.MapPath("small_business/small_business_entry.mdb")

into the

Server.MapPath("http://www.siteyouare.com/diretory/database.mdb")

but you must have the set username and password...this part I don't know
Reply With Quote
  #6 (permalink)  
Old 05-31-06, 07:13 AM
koncept
Guest
 
Posts: n/a
rayden that will not work either.
the mappath only works for something on the local computer and cannot include the http://sitename

if you realy want to try it...
http://www.aspfaq.com/show.asp?id=2168
Reply With Quote
  #7 (permalink)  
Old 06-02-06, 02:16 PM
swaze swaze is offline
Newbie Coder
 
Join Date: Nov 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the help.. I think I'll just keep it as two seperate databases... But I do have another question for another project:

http://www.programmingtalk.com/showt...2416#post92416

Thanks again for the help!
Reply With Quote
  #8 (permalink)  
Old 06-29-06, 11:53 PM
ycicom ycicom is offline
New Member
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
I have a solutions for this problem, using xml (ServerHTTP).
Single-signon system demo: http://aspspider.ws/ycicom/xmllogin/login.asp
user:admin
pass:uban694t
user database is stored on http://thuyquynh.somee.com/loginsys/

Storing file in another server : http://thuyquynh.somee.com/?list=str
user:admin
pass:diemyeudau

You can upload files to another freehost storage (1asphost.com/brinkster.com/ipdz.com/...), and these file-links is managed on mainsite database.

For Storing file in another server solutions, I use a multipart-form(include file field,text field...) in order to "post" to file-storage server. File-storage will save file(and needed info) on its db, then it will "post" back other infos to main server.

Dont get strange because of my english, hix, Im only a vietnamese student,so my english is very poor.

About multi-domain single-sign on system, when user login on a sub-site, I use xml to post username&password to login server, then login server will return true(follow by user'info) or false. The rest will be solved by sub-site.

I hope you would understand, hic hic, maybe I will get a english course later

You can use any dababase type, even ms access, it would be a low-cost solutions( for a student like me ).

If you'r interested in my works and want to get multi-domain single-signon asp source, please send me an email (ycicom@gmail.com)

Last edited by ycicom; 06-30-06 at 12:08 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anybody used SourceAnyWhere,could you help me out? xutaokelly Windows .NET Programming 0 08-22-05 05:41 AM
can i connect to exchange server via asp? traceMe ASP 3 12-31-04 09:20 AM
How can i Connect to an Access database in web server Romeo Visual Basic 6 11-07-04 12:46 PM
Error while creating database (Errornumber 2002: "Can't connect to local MySQL server lylesback2 PHP 5 04-11-04 01:37 PM
Can't connect to MSSQL server lordmerlin ASP 2 02-11-04 01:05 AM


All times are GMT -5. The time now is 03:47 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.