You are calling EXECUTE @sql instead of EXEC(@sql). Please update it once and try, it will work.
EXECUTE @sql
EXEC(@sql). Please update it once and try, it will work.