title: Connecting to a remote database via a connection string
body: <p>I am attempting for my program to read an access database from another computer connected in the same LAN network (intranet). This is the code that I am using:</p>
  
  <pre><code>namespace CalUnderFoot
  {
      public partial class Window1 : Window
      {    
          CarsDBDataSet dataSet;
          CarsDBDataSetTableAdapters.CarSchedulingTableAdapter adapter;
  
          public Window1()
          {
              InitializeComponent();
  
              System.Data.OleDb.OleDbConnection con = new System.Data.OleDb.OleDbConnection()
              {
                  ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;" + @"Data source= \\UNDERFOOT-PC\CalUnderFootDB\CarsDB.mdb"
              };
  
              con.Open();
               \\do stuff
  </code></pre>
  
  <p>It won't open the database from</p>
  
  <pre><code>\\UNDERFOOT-PC\CalUnderFootDB\CarsDB.mdb
  </code></pre>
  
  <p>It only generates another copy of itself in the same location of the program.
  I know this is a syntax issue and I am new to C#. So what am I missing here?</p>
  
  <p>I double checked the network connection between the 2 computers and it's OK.</p>