Solved

Connect to DataBase on Remote WebServer

Posted on 2003-10-30
24
293 Views
Last Modified: 2013-11-13
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
0
Comment
Question by:gharman
  • 10
  • 7
  • 3
  • +2
24 Comments
 
LVL 5

Expert Comment

by:fantasy1001
ID: 9656118
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 ~
0
 

Author Comment

by:gharman
ID: 9656122
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
0
 
LVL 5

Expert Comment

by:fantasy1001
ID: 9656179
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 ~
0
 

Author Comment

by:gharman
ID: 9656195
Doesnt work tried that one. It not a valid file type.

Greg
0
 
LVL 5

Expert Comment

by:fantasy1001
ID: 9656218
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 ~
0
 

Author Comment

by:gharman
ID: 9656233
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
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 9656803
0
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 9656930
URL querys come standard with SQL 2000 if you are interested in upgrading.
0
 

Author Comment

by:gharman
ID: 9659785
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
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 9659908
0
 

Author Comment

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

Greg
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

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

Greg
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 9665759
If the server is not configured to let you through, you won't be able to use the database!
0
 

Author Comment

by:gharman
ID: 9684492
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
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 9685778
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.
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 10163588
Points to emoreau
0
 

Author Comment

by:gharman
ID: 10168563
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
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 10168641
>>This question was never answered

I think that I gave you some hints on solution but you never postback!
0
 

Author Comment

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

Greg
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 10170483
"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."
0
 

Author Comment

by:gharman
ID: 10171952
How does a book reference that I have not bought refer to using a VPN connection.

Greg
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 10457128
PAQed, with points refunded (100)

Computer101
E-E Admin
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now