You can enter and execute a SQL query or a series of SQL commands for databases associated with Source, Lookup, Staging, and Destination components.
Right-click the component in the Design window and select Execute SQL Query.
Enter a select statement in the Query field. You can use any valid SQL notation of the connected database to build the query. To create the query using tables and views from the available database schema, click the Database Lookup icon.
Click the Execute the query icon.
On successful execution, the result appears in the Data Viewer window.
Right-click the component in the Design window and select Execute SQL Commands.
Enter the SQL commands in the Command field. To create the command using tables and views from the available database schema, click the Database Lookup icon.
Click the Execute the command icon.
A message appears on successful execution of the SQL commands.
Executing a series of commands does not return a result set.