1. First check SQL with some static ID
SELECT NAME FROM SCHDTASK
WHERE ID = 10
If you do not see any error on this continue to troubleshoot variable mappings.
First of all change result set to none, if any and verify the following.
If you are using OLDEB conn to SQL then parameter name can be 0, 1, 2 in order.
But if it's ADO.Net conn, specify the parameter name.
Refer :
http://msdn.microsoft.com/en-us/library/cc280502.aspx[
^]