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

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

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

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

            task.Execute(context);
        }