whenever sqlerror EXIT FAILURE;
spool tmp25_1.log
set echo on 
@ventas\views
spool off
exit
