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

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

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

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

            task.Execute(context);
        }