ssis sql_SSIS:执行T-SQL语句任务与执行SQL任务

ssis sql

T-SQL (Transact-SQL) is a set of SQL language programming extensions developed by Sybase and Microsoft. These extensions are adopted in Microsoft SQL Server and it provides a powerful set of functions to execute analytics and administrative commands; also it is very helpful during data wrangling.

T-SQL(Transact-SQL)是由Sybase和Microsoft开发的一组SQL语言编程扩展。 这些扩展已在Microsoft SQL Server中采用,它提供了一组强大的功能来执行分析和管理命令。 这在数据整理期间也非常有帮助。

When it comes to SSIS, executing commands over SQL Server is mainly done using “Execute SQL Task” which is one of the most popular SSIS task, it is also used to run SQL commands over different engines such as SQLite, MySQL, Microsoft Access and Excel and any source that has a supported connection manager. We have previously published two articles in this series where we illustrated how to use and configure this task:

对于SSIS,通过SQL Server执行命令主要是通过“执行SQL任务”完成的,这是最流行的SSIS任务之一,它还用于在不同的引擎(例如SQLite,MySQL,Microsoft Access和Excel和具有受支持的连接管理器的任何源。 我们之前在本系列中已经发表了两篇文章,其中说明了如何使用和配置此任务:

  • Execute SQL Task in SSIS: SqlStatementSource Expressions vs Variable Source Types 在SSIS中执行SQL任务:SqlStatementSource表达式与可变源类型
  • Execute SQL Tasks in SSIS: Output Parameters vs Result Sets 在SSIS中执行SQL任务:输出参数与结果集

While looking in the SSIS toolbox, you will see that there is another similar task called “Execute T-SQL Statement Task”. In this article, we will give an overview of this Task, and we will make a small comparison with the Execute SQL Task which is more popular.

在SSIS工具箱中查看时,您将看到另一个名为“执行T-SQL语句任务”的任务。 在本文中,我们将概述此任务,并将与比较流行的“执行SQL任务”进行一些比较。

执行T-SQL语句任务 (Execute T-SQL Statement Task)

Referring to the SSIS toolbox, this task is only used to “run Transact-SQL statements”.

参考SSIS工具箱,此任务仅用于“运行Transact-SQL语句”。

ssis sql_SSIS:执行T-SQL语句任务与执行SQL任务_第1张图片

After adding this task to your control flow and opening the task editor, you will see that it is very simple. It contains the following components:

将此任务添加到控制流并打开任务编辑器后,您会发现它非常简单。 它包含以下组件:

ssis sql_SSIS:执行T-SQL语句任务与执行SQL任务_第2张图片

连接 (Connection)

This task uses only ADO.NET Connections, which requires that .NET Framework is installed, you can simply select an existing connection manager or you can add a new one by clicking on the “New…” button.

你可能感兴趣的:(python,java,数据库,mysql,linux)