SSIS Execute SQL Task

SSIS Execute SQL Task

SSIS Execute SQL Task is used to execute sql code on source connection. Below are the stetp by step guide to create a SQL node in SSIS:

  1. Open SSIS Project.
  2. In Control Flow window drag and drop Execute SQL task from toolbox.
  3. Double click Execute SQL Task to edit.
  4. In Execute SQL Task Editor provide an connection (Click here to know how to create a new connection in SSIS).
  5. In SQLStatement field provide appropriate SQL code.
  6. Do not change other default settings. Click on OK button to save the changes.

Click play to execute your first SSIS package with Execute SQL task.

SSIS Execute SQL Task Editor options:

  1. General Tab
    1. General:
      1. Name: This is the display name of Execute SQL Node.
      2. Description: It is used to tell other what is the purpose of this node.
    2. Options:
      1. TimeOut: It will tell SSIS about the time out value. 0 Means infinity.
      2. CodePage: 
    3. Result Set: 
      1. Result Set: It tells SSIS about result set. We have a separate article here to explain this.
    4. SQL Statment:
      1. Connection Type: Need to select the type of connection (Excel, OLED DB, ODBC, ADO, ADO .NET, SQLMOBILE)
      2. Connection: Need to select connections (If not exists create a new one, here is the tutorial). 
      3. SQLSourceType: It will decide from where the SQL Statement is stored. Valid Values (Direct Input, File Connection, Variable here is the tutorial for different values) .
      4. IsQueryStoredProcedure: Valid Values (True | False)
      5. ByPassPrepare: This option decide whether to create SQL Statement Dynamically or not. (Here is the tutorial for the same).
  2. Parameter Mapping: It is used to map the SSIS Variables and Parameters used in SQL Statement. Here is a separate article on this.
  3. Result Set: It is used to map result of the query with external SSIS Variables. Here is a separate article on this.
  4. Expressions: It is used to dynamically set the properties of Execute SQL Task.

Your valuable comments will be highly appreciated.

Leave A Comment

Please login to post your valuable comments.

Join the newsletter

Get the latest vLemonn news first