public static void ExecuteSqlCommand( IScriptExecutionEnvironment environment, string connectionString, string commandText) { ExecuteSqlScriptTask task = new ExecuteSqlScriptTask(connectionString, null, commandText); task.Execute(environment); }
public static void ExecuteSqlCommand( ITaskContext context, string connectionString, string commandText) { ExecuteSqlScriptTask task = new ExecuteSqlScriptTask(connectionString, null, commandText); task.Execute(context); }
public static void ExecuteSqlScriptFile( IScriptExecutionEnvironment environment, string connectionString, string scriptFilePath) { ExecuteSqlScriptTask task = new ExecuteSqlScriptTask(connectionString, scriptFilePath, null); task.Execute(environment); }
public static void ExecuteSqlScriptFile( ITaskContext context, string connectionString, string scriptFilePath) { ExecuteSqlScriptTask task = new ExecuteSqlScriptTask(connectionString, scriptFilePath, null); task.Execute(context); }