Exemplo n.º 1
0
        private static void RestoreOlapDb(string[] args)
        {
            // get archivePath
            string archivePath = null;

            foreach (string s in args)
            {
                if (s.ToUpper().StartsWith("/P:"))
                {
                    archivePath = s.Substring(3);
                    break;
                }
            }

            // do stuff
            MsmdarchWrapper.RestoreOlapDb(archivePath);
        }
Exemplo n.º 2
0
        private static void ArchiveOlapDb(string[] args)
        {
            // get dbName and archivePath
            string dbName      = null;
            string archivePath = null;

            foreach (string s in args)
            {
                if (s.ToUpper().StartsWith("/N:"))
                {
                    dbName = s.Substring(3);
                }
                else if (s.ToUpper().StartsWith("/P:"))
                {
                    archivePath = s.Substring(3);
                }
            }

            // do stuff
            MsmdarchWrapper.ArchiveOlapDb(dbName, archivePath);
        }