How to make a remote call to an Access database method

Source: Internet
Author: User
Tags dsn access database

How to invoke the Access database method remotely:

Tcp/ip,ado and XML are used (Microsoft XML 4.0 needs to be installed.) )。 Sub-server and client-side two parts, the server can connect multiple users simultaneously. There are a number of ways to remotely connect to an Access database, which I have answered in more detail (see the 5 methods listed below), and this example is the 3rd method (no need to use RDS or a Web server).

Several ways to connect to an Access database remotely:

1. Establish VPN (Virtual Private network), so that your computer and host connection is the same as the LAN, and then the server in the MDB file folder to share. The ADO connection is as follows: The following is the referenced content:

     
     oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=servernamedatabasefolderdatabase.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 via RDS (Remote Data Service) and IIS: If the server is set up ODBC DSN as above Jave said: The following are references:

     
     oConn.Open "Provider=ms remote;" & _ 
 

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

"Remote Provider=msdasql ; "& _ 

" Dsn=advworks; "& _ 

" Uid=myusername; "& _ 

" Pwd=mypassword "

If you are setting up an OLE DB Provider: The following is what you refer to:

     
     oConn.Open "Provider=ms remote;" & _ 
 

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

"Remote Provider=micro Soft. Jet.oledb.4.0 & _ " 

Data Source=c:somepathmydb.mdb", _ 

"admin", ""

3. Write your own server program, pass the recordset through TCP/IP.

4. Use third party controls, such as ADO anywhere or udaparts rdb.

5. Use of XMLHTTP

Attach a remote connection to SQL Server: The following are the contents of the reference:

 
      
      connstr = "provider=sq
  Loledb.1;
  Network LIBRARY=DBMSSOCN;
  Persist Security info=true; User Id=username;
  Password=password;
  Initial catalog= remote database name; Data source=203.129.92.1 "

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.