path over network

  • Thread starter Thread starter Andrija
  • Start date Start date
A

Andrija

Can someone tell me how to set a path over a network?
I have a database which has to be accessed from another computer. When I set
path in connection string, it fails to connect. Example
path=//Main/C/Program Files/Program/db.mdb

this seems to be invalid path. Maybe there is a problem with backslashes?
 
If you are in C#, make sure you put a @ in front of the string or add an
additional slash b/c it's a delimmeter

ie @"\\Main\program files\Program\db.mdb"
or
"\\\Main\\program files\\Program\\db.mdb"
 
Back
Top