Solved

Database scheme for multiple users

Posted on 2002-06-07
3
131 Views
Last Modified: 2010-05-18
My VB program uses an Access database. I am green on networks, and pretty green on database stuff too. (but pretty fair with VB)

The program curently is intended for installation and use on a local machine as the users each create personal  databases. But the IT managers don't like this, they want it to be installable on the network drive rather than install and maintain local machines.

How is this generally handled?

Brian
0
Comment
Question by:brayle
3 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 100 total points
ID: 7063615
Install the actual database on the Netpwrd SERVER - a machine that ALL of the networked PCs have access to.  The install the application on each PC, and in your code, you would make a CONNECTION (you may need to read about ADO - ActiveX Data Objects and Connections) to the Database.  This can most easily be accomplished by setting up a Database ODBC connection DSN (Data Set Name) on each PC - this can be accomplished from the Setup Panel on each PC.

This is manageable if there are not TOO many PCs that you must deal with. For instance, I did exactly this with an application at a former job-site, wityh about 50 PCs on the network - required about a day, going to each PC to set it up and install the VB application.

If the number of PCs is large, or if they are in many different places, then you can actually make the connection in the software, using what is called a DSN-Less connection.  However, the problem that rises then is that this may require the EVERY PC have the same mapping to the Network drive where the database is located.

Arthur Wood
0
 
LVL 4

Expert Comment

by:escheider
ID: 7063847
Good advice arthur.

Other things to keep in mind:

1.  Handling multi-users in the same database
2.  Record locking so multiple users don't modify or delete the same record at the same time.
3.  Managing problems that will occur due to extra network bandwidth.
4.  Setting up a test environment for testing prior to rolling it out to production.

The good thing about doing it this way is central management of the data.  

In addition to DNS and DNS-less connections, you can also use OLEDB to create your connection object to the database, but will require a mapped drive letter on each machine (as Arthur has suggested).
0
 

Author Comment

by:brayle
ID: 7064138
Looks like as much work as just setting up each user, but then I guess the advantage is just one database to maintain.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
vb6 programatically bring window to front 8 75
Determine Range to Select 5 52
Run code from text file in vb 1 72
Access Object Property from VBA Module in Excel 2010 2 37
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

856 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