Hi @David Beltran
As the saying goes, practice makes sense, I followed your example first to create a stored procedure, the stored procedure is to query an existing table, and then I created a view and executed the stored procedure in the view.
Unfortunately, it reported an error, 'Incorrect syntax near the keyword 'exec'. Not to mention using dynamic SQL.
So, I'm sorry to say that the results you want are almost impossible to achieve.
Best regards,
Percy Tang
If the answer is the right solution, please click "Accept Answer". If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.