コード例 #1
0
ファイル: OLAPTest.cs プロジェクト: piaolingzxh/Justin
        public static void SSAS_OLAP()
        {
            var solution = PrepareSolution();

            string dwOleDbConnStr = "Provider=sqloledb;Data Source=.;Initial Catalog=OLAPDW;User Id=sa;Password=sa;";
            string olapConnString = "Data Source = .;Provider=msolap";

            //SerializeHelper.XmlSerializeToFile(solution, "solution.xml", true);
            //var newSolution = SerializeHelper.XmlDeserializeFromFile<Solution>("solution.xml");
            //SerializeHelper.XmlSerializeToFile(newSolution, "solution_new.xml", true);

            SSASFactory factory = new SSASFactory(dwOleDbConnStr, olapConnString);
            factory.DeleteSolution(solution);
            factory.CreateSolution(solution);

            Console.WriteLine("OK");
        }
コード例 #2
0
        public static void SSAS_OLAP()
        {
            var solution = PrepareSolution();

            string dwOleDbConnStr = "Provider=sqloledb;Data Source=.;Initial Catalog=OLAPDW;User Id=sa;Password=sa;";
            string olapConnString = "Data Source = .;Provider=msolap";


            //SerializeHelper.XmlSerializeToFile(solution, "solution.xml", true);
            //var newSolution = SerializeHelper.XmlDeserializeFromFile<Solution>("solution.xml");
            //SerializeHelper.XmlSerializeToFile(newSolution, "solution_new.xml", true);

            SSASFactory factory = new SSASFactory(dwOleDbConnStr, olapConnString);

            factory.DeleteSolution(solution);
            factory.CreateSolution(solution);


            Console.WriteLine("OK");
        }