Visual Basic 6.0远程数据库如何?[英] Visual Basic 6.0 Remote database How?

本文是小编为大家收集整理的关于Visual Basic 6.0远程数据库如何?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我需要VB6代码将一个 *.mdb文件连接到一台PC上,并通过Inte.net将一个PC连接到另一台PC.当我更新/保存数据库时,必须通过Internet更新到其他端PC.

我编写了一个VB6简单数据库程序,该程序可以保存roll_num,名称,学生地址.它可以在我的PC上工作,但是如何通过连接它来更新/保存/将 *.mdb文件复制到主PC的另一端.我如何使用家用PC进行更新?

推荐答案

亲爱的先生:您最简单连接到 *.mdb文件的方法是了解虚拟专用网络(VPN).

在Windows XP计算机上制作VPN服务器: http://www.onecomputerguy.com/networking.com/networking/networking/networking/xp_vp_vpn_server.htworking/xp_vpn_server.htm

您将需要熟悉网络路由器和防火墙的工作方式.您将需要了解端口转发和虚拟服务器设置(示例: http:http:http:http:http://web.belkin.com/support/kb/kb.asp?a=1448 ).最好如果您能找到一个知道这些在您附近生活的人寻求帮助的人.

一旦您的VPN服务器启动并在具有 *.mdb文件的计算机上工作,您将需要在" Home PC"上设置VPN客户端: http://www.onecomputerguy.com/networking.com/networking/xp_vpn.htm

您需要将包含 *.mdb文件包含在共享中的文件夹.在以下位置寻找"共享驱动器或文件夹": http://www.onecomputerguy.com/networking.com/networking/networking/xp_network.network.htwork.htm

设置了VPN服务器和VPN客户端后," HOME PC"(客户端)可以连接到"其他端PC"(服务器)上的 *.mdb文件.文件路径将为表格\\server\share\file.mdb.

祝你好运!

本文地址:https://www.itbaoku.cn/post/597370.html

问题描述

I need VB6 code to connect a *.mdb file to one PC to another over the internet. When I update/save my database it must update via internet to other-side PC.

I wrote a VB6 simple database program that can save Roll_Num, Name, Address of student. It works on my PC, but how do I update/save/copy my *.mdb file to the other-side of the HOME PC by connecting it. How do I use my home PC to update it?

推荐答案

Dear sir: Your easiest way to remotely connect to a *.mdb file is to learn about Virtual Private Networks (VPN).

To make a VPN Server on a Windows XP computer: http://www.onecomputerguy.com/networking/xp_vpn_server.htm

You will need to become familiar with how network routers and firewalls work. You will need to learn about port forwarding and virtual server settings (example: http://web.belkin.com/support/kb/kb.asp?a=1448). It would be best if you could find someone who knows these things who lives nearby you for help.

Once your VPN server is up and working on the computer that has the *.mdb file, you will need to setup a VPN client on the "home PC": http://www.onecomputerguy.com/networking/xp_vpn.htm

You will need to make the folder that contains the *.mdb file into a share. Look for "Sharing Drives or Folders" at: http://www.onecomputerguy.com/networking/xp_network.htm

Once your VPN server and VPN client are setup, the "home PC" (client) can connect to the *.mdb file on the "other-side PC" (server). The file path will be of the form \\server\share\file.mdb.

Good luck!