Execute T-sql Statement Task

The execute t-sql statement task runs transact-sql statements. This task is similar to the execute sql task. However, the execute t-sql statement task supports only the transact-sql version of the sql language and you cannot use this task to run statements on servers that use other dialects of the sql language. 

Step 1:

Drag and drop execute t-sql statement task and edit it. Give a connection as execute t-sql statement task. 



Step 2:
In T-Sql statement write a simple query as
BEGIN
SET NOCOUNT ON;
TRUNCATE TABLE DimEmployee

END


Step 3:

Click on View T-SQL


Step 4:

Execute a task




Comments

  1. Great article,Thank you for sharing this valuable info with us.
    Keep updating...

    MSBI Online Training India

    ReplyDelete

Post a Comment

Hi User,
Thanks for visiting My Blog and please provide your valuable feedback and subscribe for more updates. Please don't post any spam content or comments.
Thank You

Popular Posts

Failed to execute the package or element. Build errors were encountered

Exception deserializing the package "The process cannot access the file because it is being used by another process."

Temporary enable and disable SSRS subscriptions