Read a table from a SQL connection using either RODBC or DBI

read_table(connection, table_name, rodbc = FALSE)

Arguments

connection

A database connection as returned by RODBC or DBI

table_name

The table to fetch all records for

rodbc

Whether to use RODBC (if TRUE) or DBI (if FALSE, default)