I have a execute sql task that calls a function, the function requires a paramater and returns a int
i have tried setting up the sql task as follows
Connection type ADO.Net
SQLStatement SELECT dbo.CheckIsNumeric(?)
Resultset Singlerow
Result Set parameter mapped to variable, Int32
input parameter set to variable , direction Input, datatype string,
I keep getting the following error
[Execute SQL Task] Error: Executing the query "SELECT dbo.CheckIsNumeric(?) " failed with the following error: "Incorrect syntax near '?'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly,
or connection not established correctly.
If I change the SQL Statement to SELECT dbo.CheckIsNumeric(123456) it runs fine
Dont ask me .. i dont know