# File lib/arjdbc/mssql/explain_support.rb, line 27 def set_showplan_option(enable = true) option = 'SHOWPLAN_TEXT' execute "SET #{option} #{enable ? 'ON' : 'OFF'}" rescue Exception => e raise ActiveRecord::ActiveRecordError, "#{option} could not be turned" + " #{enable ? 'ON' : 'OFF'} (check SHOWPLAN permissions) due : #{e.inspect}" end
Generated with the Darkfish Rdoc Generator 2.