ArcGISCompare.MiscProcs.CreateAccessDatabase C# (CSharp) Method

CreateAccessDatabase() static private method

static private CreateAccessDatabase ( String DatabaseFullPath ) : System.Boolean
DatabaseFullPath String
return System.Boolean
        internal static Boolean CreateAccessDatabase(String DatabaseFullPath)
        {
            Boolean bAns = false;
              ADOX.Catalog cat = new ADOX.Catalog();

              try
              {
            string theConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DatabaseFullPath;

            cat.Create(theConnection);

            bAns = true;
              }
              catch (System.Runtime.InteropServices.COMException ex)
              {
            MessageBox.Show(ex.Message);
            bAns = false;
              }

              cat = null;

              return bAns;
        }