http://www.sql.ru/forum/1122678/kak-uznat-sostoyanie-application-setoption-confirm-record-changes-true-ili-false