I have a stored procedure say @Create_Dummy1 which is being passed a variable. This is declared as @Dummy_Variable1 in this stored procedure.
Next I need to call another stored procedure @Create_Dummy2 from @Create_Dummy1. I need to pass @Dummy_Variable1 in the exec statement.
But if I try to do this the string @Dummy_Variable1 is only being passed instead of the value it holds.
I’m executing procedures inside other procedures like this:
Should it still not work you should edit your question to show your exact code.