From 51b123f110bd9fbef0562fa6c41715f62df28fd9 Mon Sep 17 00:00:00 2001 From: bubibubi Date: Fri, 22 Mar 2019 14:18:21 +0100 Subject: [PATCH] closes #26 --- src/System.Data.Jet/JetConnection.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/System.Data.Jet/JetConnection.cs b/src/System.Data.Jet/JetConnection.cs index 5bd13ff..29ebc52 100644 --- a/src/System.Data.Jet/JetConnection.cs +++ b/src/System.Data.Jet/JetConnection.cs @@ -418,6 +418,7 @@ namespace System.Data.Jet public static bool DatabaseExists(string connectionString) { string fileName = JetStoreDatabaseHandling.ExtractFileNameFromConnectionString(connectionString); + fileName = fileName.Trim('"'); if (string.IsNullOrWhiteSpace(fileName)) throw new Exception("Cannot retrieve file name from connection string"); return System.IO.File.Exists(fileName);