Beispiel #1
0
 private bool setCurrentCatalog(out string errorMessage)
 {
     try
     {
         dbConn.DefaultDatabase = strCatalogName;
         errorMessage           = "";
         dtCatalog = new Catalog();
         dtCatalog.ActiveConnection = dbConn;
         cubes = dtCatalog.CubeDefs;
         return(true);
     }
     catch (Exception e)
     {
         errorMessage = e.Source + " " + e.Message;
         //MessageBox.Show(e.Source + " " + e.Message);
         return(false);
     }
 }
 private bool setCurrentCatalog(out string errorMessage)
 {
     try
     {
         dbConn.DefaultDatabase = strCatalogName;
         errorMessage = "";
         dtCatalog = new Catalog();
         dtCatalog.ActiveConnection = dbConn;
         cubes = dtCatalog.CubeDefs;
         return true;
     }
     catch (Exception e)
     {
         errorMessage = e.Source + " " + e.Message;
         //MessageBox.Show(e.Source + " " + e.Message);
         return false;
     }
 }