I have a Error variable in a package that creates a string Error Message. Then in an execute sql task I have added the Error variable
The syntax for the execute sql task is as follows:
raiserror( ?,16,1)
This does fail the package when it hits this task but gives me the below error and does not put my manually created error in the log file.
Error: 0xC002F210 at xx Package failed due to Erorr - Investigate, Execute SQL Task: Executing the query " raiserror( ?,16,1)" failed with the following error: "Syntax error, permission violation, or other nonspecific error". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Task failed:
Any ideas how to resolve this ?