RODBC                 package:RODBC                 R Documentation

_O_D_B_C _D_a_t_a_b_a_s_e _C_o_n_n_e_c_t_i_v_i_t_y

_D_e_s_c_r_i_p_t_i_o_n:

     'RODBC' implements ODBC database connectivity with compliant
     databases where drivers exist on the host system.

_D_e_t_a_i_l_s:

     Two groups of commands are provided.  The mainly internal 'odbc*'
     commands implement relatively low level access to the odbc
     functions of similar name.  'sql*' commands are higher level
     constructs to read, save, copy and manipulate data between data
     frames and sql tables.  Many connections can be open at once to
     any combination of dsn/hosts.

     The functions try to cope with the peculiar way the Excel ODBC
     driver handles table names.  However, SQL expects both table and
     column names to be alphanumeric plus '_', and RODBC does not
     support vendor extensions.  Most of the functions will drop other
     characters from table and column names.

     'options(dec)' can be used to set the decimal point to be used
     when reading numbers from character data on the database: the
     default is taken from the current locale by 'Sys.localeconv'.

_A_u_t_h_o_r(_s):

     Michael Lapsley and Brian Ripley

_S_e_e _A_l_s_o:

     'odbcConnect', 'sqlFetch', 'sqlSave', 'sqlTables', 'odbcGetInfo'

_E_x_a_m_p_l_e_s:

     ## Not run: 
     data(USArrests) # R < 2.0.0 only
     channel <- odbcConnect("test")
     sqlSave(channel, USArrests, rownames = "State", verbose = TRUE)
     sqlQuery(channel, paste("select State, Murder from USArrests",
                             "where Rape > 30 order by Murder"))
     sqlFetch(channel, "USArrests", rownames = "State")
     sqlDrop(channel, "USArrests")
     close(channel)
     ## End(Not run)

