title: What is the jdbc connection string for h2 database?
body: <p>I'm trying to connect to an h2 database on my local machine to create a sql DataSource object. I'm running windows and i'm having some issues defining the path to the data file in my projects app.properties file.</p>
  
  <p>Say the path to the local directory data file is:</p>
  
  <pre><code>D:\projects\myproject\data\project
  </code></pre>
  
  <p>How would one go about defining a connection url for this?</p>
  
  <p>I've tried the many things including the following:<br></p>
  
  <pre><code>project.db.url = jdbc:h2:tcp://localhost\\\\D:\\projects\\myproject\\data\\project
  </code></pre>
  
  <p>Then I thought maybe it's the JDBC URL that's the issue, so I tried:<br></p>
  
  <pre><code>project.db.url = jdbc:h2:tcp:\\\\localhost\\\\D:\\projects\\myproject\\data\\project
  </code></pre>