Link to home
Start Free TrialLog in
Avatar of gharman
gharman

asked on

Connect to DataBase on Remote WebServer

I have a database called Website.mdb stored on a remote server the only way to connect to is through the .com address or ip address, lets say the server is called http://www.yahoo.com for this example and the database is still called website.mdb and is store at http://www.yahoo.com/cgi/write I need to be able to run query off it as if it were local via the internet I have tried serveral things and come up empty handed each time. I am looking for examples of code as i need to get this solved in a timley manner. As of now there are no user names or passwords assigned but please include the varible with UserName = usertext and Password = passtext

Lets also say the virutal path to the database on the server is = to d:\Ipub\.com\cgi\write\website.mdb

Greg
Avatar of fantasy1001
fantasy1001

It is not impossible but very difficult. Do you have control of the website. If so, you can use other scripting language for query the database for you. What I mean is your VB program will pass request to the scripting language such as asp, java, then the output returned wil be feed back to your program. I donn't think there is why to do it directly not involving placing external program at the server.

Thanks,
~ fantasy ~
Avatar of gharman

ASKER

I want to get away from ASP i have complete FTP control over this site. Im not sure i care about the level of diffculuty to do it as long as it works id rather do it right the first time and not mickey mouse it.

Greg
Since you have ftp,
I think you can try to set the system dsn database path to the ftp path. for example \\write\website.mdb
This method worked for normal lan networking, I am not sure whether ftp also can.

Thanks
~ fantasy ~
Avatar of gharman

ASKER

Doesnt work tried that one. It not a valid file type.

Greg
It is better you use asp, asp code for querying is similar to vb also.
from your vb, use webcontrol to access the data, everything is easy.

Thanks,
~ fantasy ~
Avatar of gharman

ASKER

I do not want to use ASP to query the database i want to do it through visual basic which i know is possible thank you for your time but you dont have what I am looking for.

Greg
Avatar of Éric Moreau
URL querys come standard with SQL 2000 if you are interested in upgrading.
Avatar of gharman

ASKER

To Emoreau:

I have tried that exact website and get run time error 8447. Internet Server Error. So this will not work.

To nmcdermaid:

I cant upgrade the servers they are not myne to play with like that.


Greg
Avatar of gharman

ASKER

I have no control over the remote server i just have read and write access to the directory where the database resides.

Greg
Avatar of gharman

ASKER

Adding to the above comment : I do know that I can access the database via ASP so the server does respond.

Greg
If the server is not configured to let you through, you won't be able to use the database!
Avatar of gharman

ASKER

How about using an INET control through FTP/HTTP has anyone tried that? The only thing about using this is i dont want to download the database and then re upload it since mutiple users will  be using this application.

Greg
A book from Carl Fanklin (Visual Basic 6.0 Internet Programming - ISBN 0-471-31498-6) can help you. The last chapter is about accessing a database on a server using Winsock if I remember correctly.

But if you are serious about creating a multi-user application having its database shared over the Net, the first thing you need to do is to use SQL Server 2000 as your database engine.
Points to emoreau
Avatar of gharman

ASKER

This question was never answered and I had to actually create a VPN connection with the local server and the remote server and read the database. The point should be refunded.\

Greg
>>This question was never answered

I think that I gave you some hints on solution but you never postback!
Avatar of gharman

ASKER

You never hinted anything about a peer to peer VPN connection in any of your comments. You were far more argumentative than helpful.

Greg
"A book from Carl Fanklin (Visual Basic 6.0 Internet Programming - ISBN 0-471-31498-6) can help you. The last chapter is about accessing a database on a server using Winsock if I remember correctly."
Avatar of gharman

ASKER

How does a book reference that I have not bought refer to using a VPN connection.

Greg
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial