title: Connection to a local embedded H2 database
body: <p>I have a local H2 database stored on my laptop: <code>C:\Users\patri\Documents\Collectionneur de recettes v2</code> in Google Apps Spreadsheet: 
  I have duplicated a code I found:</p>
  
  <pre><code>var address = 'h2:file:C:\Users\patri\Documents\Collectionneur de recettes v2';
  var user = 'SA';
  var userPwd = '';
  var db = '\recipes';
  var dbUrl = 'jdbc:'+ address + ';databaseName=' + db;
  
  
  function readData() {
   var conn = Jdbc.getConnection(dbUrl, user, userPwd);
   var stmt = conn.createStatement();
   var results = stmt.executeQuery('SELECT * FROM FOLDERS');
   var metaData=results.getMetaData();
   var numCols = metaData.getColumnCount();
  
   var spreadsheet = SpreadsheetApp.getActive();
   var sheet = spreadsheet.getSheetByName("Sheet1");
   //you can use the following line to get the active sheet
   //var sheet = SpreadsheetApp.getActiveSheet();
   sheet.clearContents();
   var arr=[];
   for (var col = 0; col &lt; numCols; col++) {
    arr.push(metaData.getColumnName(col + 1));
   }
   sheet.appendRow(arr);
   while (results.next()) {
    arr=[];
    for (var col = 0; col &lt; numCols; col++) {
     arr.push(results.getString(col + 1));
    }
  </code></pre>
  
  <p>When I execute the code I receive an error message:</p>
  
  <blockquote>
    <p>The connection URL uses an unsupported JDBC protocol.</p>
  </blockquote>
  
  <p>What can I do?</p>