try { sql connect "session1" {cm get "demo_cm_mysql";}; pdf from html (sql to html "session1" "products" (concat "select * from products")) "/Users/jimmitry/Desktop/test.pdf"; sql disconnect "session1"; } { try {sql disconnect "session1";} {} "[err_sql]"; log trace [err]; } "[err]";