    # File lib/active_record/connection_adapters/sqlserver_adapter.rb, line 294
          def execute(sql, name = nil)
            if sql =~ /^\s*INSERT/i
              insert(sql, name)
            elsif sql =~ /^\s*UPDATE|^\s*DELETE/i
              log(sql, name) do
                @connection.execute(sql)
                retVal = select_one("SELECT @@ROWCOUNT AS AffectedRows")["AffectedRows"]
              end
            else
              log(sql, name) { @connection.execute(sql) }
            end
          end