Problem: SSIS “The statement has been terminated”
I have an SSIS project that has an Execute Task, which calls a stored procedure.
The stored procedure has a number of elements to it and takes a long time to complete.
The procedure completes with no errors and I can verify that all tasks were completed, however; the following step in the SSIS package is never executed and when I set SSIS logging on, I can see that the Execute Tast (as previously mentioned) has produced the following error:
Executing the query “EXEC dbo.myprocname” failed with the following error: “The statement has been terminated.”. Possible failure reasons: Problems with the query, “ResultSet” property not set correctly, parameters not set correctly, or connection not established correctly.
A quick check on the Execute Task:
MaximumErrorCount: 10000
ResultSetType: ResultSetType_None
Timeout: 0
I set the execute task to continue upon completion, not upon sucess (blue task line), so I don’t see a reason for the step to terminate.
Solution: SSIS “The statement has been terminated”
Is the timeout set on the Data Source ?