Morning All,I have the following code which is not working and I am not sure whyDeclare @Item As varcharDeclare @Singularity As IntDeclare @ProcessID As IntDeclare @TaskID As IntSet @Item = (SELECT ItemID FROM CancellationDetails WHERE QryNo = @CTSQryNo)Set @Singularity = (Exec Frontier..sp_STEP_CreateSingularity 7, 12, @Item, @EmployeeNo)Set @ProcessID = (Exec Frontier..sp_STEP_StartProcess @Singularity, 1, 4, @EmployeeNo)Set @TaskID = (Exec Frontier..sp_STEP_GetTasksByProcessID @TaskID)
I am getting an error message saying Incorrect syntax near 'Exec'.Can anyone see where I am going wrong on this one?Thanks,Gavin