Example #1
0
        private static void ProcessOlapDb(string[] args)
        {
            string olapServer = GetArgumentByTag("OS:", args);
            if (olapServer == null)
                olapServer = "localhost";

            string olapDB = GetArgumentByTag("ODB:", args);
            if (olapDB == null)
                throw new ArgumentException("Agrument missing: OlapDb");

            string dsServer = GetArgumentByTag("DSS:", args);
            if (dsServer == null)
                dsServer = ".";

            string dsDB = GetArgumentByTag("DSDB:", args);
            if (dsDB == null)
                throw new ArgumentException("Agrument missing: DataSourceDb");

            string dsUser = GetArgumentByTag("DSU:", args);
            if (dsUser == null)
                dsUser = "******";

            string dsPwd = GetArgumentByTag("DSP:", args);
            if (dsPwd == null)
                dsPwd = "spp";

            string sppIniPath = GetArgumentByTag("INIP:", args);
            if (sppIniPath == null)
                sppIniPath = "";

            DatabaseManager dm = new DatabaseManager(olapServer, olapDB, dsServer, dsDB, dsUser, dsPwd, sppIniPath);
            dm.PreProcess();
            dm.ProcessOlapDatabase();
            if (_toLog)
                FI.Common.LogWriter.Instance.WriteEventLogEntry(string.Format("ProcessOlapDb: server '{0}', db '{1}'", olapServer, olapDB));
        }
 internal SalesCallDataManager(DatabaseManager dbManager)
 {
     _dbManager = dbManager;
 }
 public DynamicDimensionManager(DatabaseManager dbManager)
 {
     _dbManager = dbManager;
 }
 public DynamicDimensionManager(DatabaseManager dbManager)
 {
     _dbManager = dbManager;
 }