Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

Datasource as IP address on server

I have created a data source on my computer that will work great when deployed on a computer. But it just dawned on me that if I want to deploy this program I will need numerous computers to access the same microsoft access database as the data source. The problem is I do not know where the program will be deployed yet. I know I can set it up so I use the network address like \\smith\c:\whatever, but I do not know what that will be.

I once saw a program that when deployed it asked for the IP address for the server as the program was being installed. How would this be set up. I could deploy the access database to the server and when I deploy the program (front end) it would access the server back end (access database)
0
wiswalld
Asked:
wiswalld
  • 2
1 Solution
 
JackOfPHCommented:
If you want to use the IP address of the "database server", all you need to do is change the path of the database in the app.config files.

The path should look similar to this:

\\192.168.1.1\c$\whatever\database.mdb  '<--- Using the administrative shares

or

\\192.168.1.1\shared folder\database.mdb <---- using shared folders.


0
 
ericwong27Commented:
You can set-up a Web Service Application to achieve this without sharing the folder.
0
 
wiswalldAuthor Commented:
JackOfPH

Is it possible to simplify this by simply have a form where I can type in this information, but the form would only appear on the install?
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now