I have a stored procedure with the nvarchar parameter. I expect callers to provide text for the sql command when using this SP.
How to execute the provided sql command from SP?
Is it possible? -
I thought this was possible using EXEC, but the following:
EXEC @script
indicating that it cannot find the stored procedure by the given name. Since this is a script, it is obviously accurate, but it makes me think that it does not work as expected.
source share