I have a stored procedure with one string parameter. I have tried the following:
exec mySproc :s – results in “incorrect syntax near ‘:’
exec mySproc @s = :s – results in “incorrect syntax near ‘:’
exec mySproc ‘:s’ – successfully calls the sproc but the parameter value it delivers is literally ':s”, NOT the parameter value I am sending in from the named query testing tab.
exec mySproc @s = ‘:s’ – successfully calls the sproc but the parameter value it delivers is literally ':s”, NOT the parameter value I am sending in from the named query testing tab.
I can’t think of any other way to create a named query using a stored procedure. Has anyone done this?