sqlTypeInfo              package:RODBC              R Documentation

_R_e_q_u_e_s_t _I_n_f_o_r_m_a_t_i_o_n _a_b_o_u_t _D_a_t_a_T_y_p_e_s _i_n _a_n _O_D_B_C _D_a_t_a_b_a_s_e

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

     Request information about datatypes in an ODBC database

_U_s_a_g_e:

     sqlTypeInfo(channel, type = "all", errors = TRUE, as.is = TRUE)

_A_r_g_u_m_e_n_t_s:

 channel: connection handle as returned by 'odbcConnect'.

    type: The types of columns about which information is requested.
          Possible values are '"all", "char", "varchar", "real",
          "float", "double", "integer", "smallint", "timestamp"'.

  errors: if TRUE halt and display error, else return -1

   as.is: as in 'sqlGetResults'.

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

     'sqlTypeInfo' attempts to find the types of columns the database
     supports.  Not all ODBC drivers support this.  Where it is
     supported, it is used to decide what column types to create when
     creating a new table in the database.

_V_a_l_u_e:

     A data frame on success, or character/verbose on error depending
     on the 'errors' parameter.  See 'sqlGetResults' for further
     details.

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

     Brian Ripley

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

     'sqlGetResults', 'odbcGetInfo'

