Solved

Remote Database Connection Through Vb

Posted on 2003-12-10
7
234 Views
Last Modified: 2010-04-17
I have a MsAccess Database on Server and the client wants to connects the database. The Database is not sharable. How can i connect it usiing Vb
0
Comment
Question by:teenapareek
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
7 Comments
 
LVL 2

Accepted Solution

by:
syed555 earned 250 total points
ID: 9911612
1st  step is to share the drive or folder of the server on which your access database is residing. once you share, client should be able to access the database browsing through network.

2nd step to connect database from VB.
there are no of methods to do so.
one way is to create an Odbc connection from windows control panel of clinet.
ODBC will map the database with network path.
 \\servername\sharedfolder\data\Mydatabase.MDB

code to connect from VB
Dim cn as new Adodb.Connection
Cn.Open "DSN=YourDSN;UID=admin;PWD="

0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 250 total points
ID: 9917463
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 10317109
split points between syed555 and emoreau
0
 
LVL 2

Expert Comment

by:syed555
ID: 10936468
split points between syed555 and emoreau
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
A short article about problems I had with the new location API and permissions in Marshmallow

734 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