How to remotely call the ACCESS database [requires refined!]

Source: Internet
Author: User

TCP/IP, ADO, and XML are used (Microsoft XML 4.0 must be installed .). It is divided into two parts: server and client. The server can be connected to multiple users at the same time. There are many methods to remotely connect to the access database. I have answered in detail before (see the five methods listed below ), this example belongs to the 3rd methods (no RDS or web server is required ).

-------------------------------------

Several Methods for remotely connecting to the ACCESS database:

1. Create a VPN (Virtual Private Network) so that your computer and host can be connected to the LAN, and then share the folder where the MDB file in the server is located. The ADO connection is as follows:

Oconn. Open "provider = Microsoft. Jet. oledb.4.0; Data Source = \ servername \ databasefolder \ database. mdb; Jet oledb: Database Password = databasepw; persist Security info = false"

2. Place the database on the Web server so that ADO or rdo can be implemented through RDS (Remote Data Service) and IIS:

If odbc dsn is set on the server as mentioned in the above Jave Daxia:

Oconn. Open "provider = MS remote ;"&_

"Remote Server = http: // myservername ;"&_

"Remote provider = msdasql ;"&_

"DSN = advworks ;"&_

"Uid = myusername ;"&_

"Pwd = mypassword"

If you set ole db Provider:

Oconn. Open "provider = MS remote ;"&_

"Remote Server = http: // myservername ;"&_

"Remote provider = Microsoft. Jet. oledb.4.0 ;"&_

"Data Source = c: \ somepath \ mydb. mdb ",_

"Admin ",""

3. Write your own serverProgram, Pass recordset through TCP/IP.

4. Use third-party controls, such as ADO anywhere or udaparts RDB. View Details

5. Use XMLHTTP

--------------------------------------

Method for connecting to SQL server remotely:

Connstr = "provider = sqloledb.1; network library = dbmssocn; persist Security info = true; user id = username; Password = password; initial catalog = remote database name; Data Source = 203.129.92.1"

Appendix: [remote access database call] Remote Access Data Warehouse. rar (, 1.08 K)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.