Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi! I'm having trouble on making my program, a queuing system, centralized. It is going to be used by 5 different computer workstations.

My question is, do I need to copy the source code of the program I'm currently developing to the other 5 computers? Or do I only have to setup the program using the install shield? My other problem is how can I use a single database, the one that the system currently uses, on the other 5 computers?

I'm currently using VS2012 and MS ACCESS 2007 as my database. Thanks!

What I have tried:

connString6 = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\IPAdd\share\C:\Users\PCName\folder\database.mdb"
Posted
Updated 16-Oct-17 22:24pm
Comments
Richard MacCutchan 17-Oct-17 4:17am    
You certainly need your database on a central server if you want to share it between workstations. Check the Access documentation for the procedures you need to use. And use InstallShield (or similar) to install your program on multiple workstations. Copying alone can leave vital components missing.

1 solution

You don't need to copy the source code, just the install program should do: that is it's job! It installs your application and all the files it depends on on each computer that needs to run the app.

But ... don't use Access. It's not designed for multiuser access and while it is possible to use it that way, it has given nasty problems every time I've seen it done.
Use a Server based database like SQL Server, or MySQL instead - provided your code is well written, it should be just a case of changing OdbcConnection to SqlConnection or MySqlConnection; OdbcCommand to SqlCommand or MySqlCommand; etc. You will need to change the connection string, but that should be in a configuration file anyway so that should be no problem at all.
The database system will need to be installed on the server, and the database itself added to the engine.
 
Share this answer
 
Comments
noob_noob 17-Oct-17 4:47am    
Hi! which version of sql best fits the system I'm working on? Is SQL 2012 enterprise okay? It is the version of sql I currently have.
OriginalGriff 17-Oct-17 5:13am    
Absolutely! If you have that, it'll do fine - and much, much better than Access!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900