Esempio n. 1
0
        public static void ExecuteSqlCommand(
            IScriptExecutionEnvironment environment,
            string connectionString,
            string commandText)
        {
            ExecuteSqlScriptTask task = new ExecuteSqlScriptTask(connectionString, null, commandText);

            task.Execute(environment);
        }
Esempio n. 2
0
        public static void ExecuteSqlCommand(
            ITaskContext context,
            string connectionString,
            string commandText)
        {
            ExecuteSqlScriptTask task = new ExecuteSqlScriptTask(connectionString, null, commandText);

            task.Execute(context);
        }
Esempio n. 3
0
        public static void ExecuteSqlScriptFile(
            IScriptExecutionEnvironment environment,
            string connectionString,
            string scriptFilePath)
        {
            ExecuteSqlScriptTask task = new ExecuteSqlScriptTask(connectionString, scriptFilePath, null);

            task.Execute(environment);
        }
Esempio n. 4
0
        public static void ExecuteSqlScriptFile(
            ITaskContext context,
            string connectionString,
            string scriptFilePath)
        {
            ExecuteSqlScriptTask task = new ExecuteSqlScriptTask(connectionString, scriptFilePath, null);

            task.Execute(context);
        }