if your application currently only calls stored procedures, then keep it consistent and call the stored procedure and do dynamic SQL there.
If the application is already populated with generated SQL statements, just create dynamic SQL there.
, SQL . , .