First of all, is it even possible ?
I have a stored procedure which looks like:
SELECT this FROM table WHERE this IN (SELECT that FROM another_table WHERE that = @Param)
I would like to replace (SELECT that FROM another_table WHERE that = @Param)
by another stored procedure
I am having trouble finding the right syntax to make it work. I tried:
SELECT this FROM table WHERE this IN (EXEC new_stored_procedure @Param)
But this doesn't work. Does somebody know the right syntax to do so ?
Thank you for helping