move with_sql_server_error_handling into _raw_select