Discussion Locked

Read/Write Remote Data on Web Server

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a need to read and write data to several Access databases on my web site in order to update/post this information for web visitors. The server is not in-house so we can't make a connection to it locally over the network.

What would be a good VB/client-side application solution to send/receive data to this remote server?

Can I make a remote connection to it's DSN?

Should I use an FTP control or transfer control or browser control?

Please be detailed in your explanation - code sample or specific articles or books, etc.

The remote site is running NT 5.0 with security.

(I am looking for a solution that runs in VB, not ASP/HTML using VBScript.)

3 replies

by steved

This is not so straightforward as you hope. The best answer is to migrate your databases to SQL Server on the remote server. Then you could create DSNs on your local clients that would connect directly to the databases via TCP/IP.

If that's impractical for you, then here are the answers to your specific questions:

You cannot connect to a DSN defined on the remote server from a client nor can you create a client DSN to do so.

You can use FTP, but it would be very awkward and slow. You would have to download your entire MDB files from the remote site, make your changes, and upload the entire MDB files. If in the meantime web site visitors are changing the data in the original MDBs, you have a nightmare.

In my opinion, if you haveto stay with Access on the server, the only viable VB solution is to write a standalone ActiveX component (EXE) to run on the server. This component would use server DSNs to connect to the database. It would expose properties and methods that allow all the database maintenance that you require. Then you write a client-side VB project that provides a front end and utilizes the remote component for its database access. Excellent examples of the classes and other project components that support this kind of approach can be found in "Doing Objects in Microsoft Visual Basic 6," by Deborah Kurata.

All that being said, if you're determined to stick to Access, my advice would be to use ASP/HTML rather than VB. You'll end up with a more flexiblesolution that's completely hosted on the remote server. Your data entry people will be able to connect to it from anywhere in the world using just a web browser for a client.

I hope this helps.

Steve Diamond

This discussion is closed to new replies.