Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            string Server="";
            string Database="";
            string OutFile="";
            string DacPac = "";

            for (int i =0;i<args.Length;i+=2)
            {
                switch (args[i]){
                    case "-S":
                        Server =args[i+1];
                        break;
                    case "-d":
                        Database = args[i + 1];
                        break;
                    case "-o":
                        OutFile = args[i + 1];
                        break;
                    case "-f":
                        DacPac = args[i + 1];
                        break;


                }


            }
            SCADacpac s = new SCADacpac();
            if (DacPac.Equals(""))
                s.RunAnalysisAgainstDatabase(Server, Database, OutFile);
            else
                s.RunDacpacAnalysis(DacPac, OutFile);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            string Server   = "";
            string Database = "";
            string OutFile  = "";
            string DacPac   = "";

            for (int i = 0; i < args.Length; i += 2)
            {
                switch (args[i])
                {
                case "-S":
                    Server = args[i + 1];
                    break;

                case "-d":
                    Database = args[i + 1];
                    break;

                case "-o":
                    OutFile = args[i + 1];
                    break;

                case "-f":
                    DacPac = args[i + 1];
                    break;
                }
            }
            SCADacpac s = new SCADacpac();

            if (DacPac.Equals(""))
            {
                s.RunAnalysisAgainstDatabase(Server, Database, OutFile);
            }
            else
            {
                s.RunDacpacAnalysis(DacPac, OutFile);
            }
        }