odbcGetInfo              package:RODBC              R Documentation

_R_e_q_u_e_s_t _I_n_f_o_r_m_a_t_i_o_n _o_n _a_n _O_D_B_C _C_o_n_n_e_c_t_i_o_n

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

     Request information on an ODBC connection.

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

     odbcGetInfo(channel)

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

 channel: connection handle as returned by 'odbcConnect()' of class
          '"RODBC"'.

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

     A named character string giving information on the database and
     ODBC driver in use on the connection 'channel'.

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

     Brian Ripley

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

     ## Not run: 
     odbcGetInfo(channel) # under Windows XP
     ## MySQL returned
                  DBMS_Name               DBMS_Ver        Driver_ODBC_Ver
                    "MySQL"           "4.0.20a-nt"                "03.51"
           Data_Source_Name            Driver_Name             Driver_Ver
                  "testdb3"          "myodbc3.dll"             "03.51.09"
                   ODBC_Ver            Server_Name
               "03.52.0000" "localhost via TCP/IP"
     ## MS Access returned
            DBMS_Name         DBMS_Ver  Driver_ODBC_Ver Data_Source_Name
             "ACCESS"     "04.00.0000"          "03.51"        "testacc"
          Driver_Name       Driver_Ver         ODBC_Ver      Server_Name
       "odbcjt32.dll"     "04.00.6304"     "03.52.0000"         "ACCESS"
     ## MSDE 2000 returned
                  DBMS_Name               DBMS_Ver        Driver_ODBC_Ver
     "Microsoft SQL Server"           "08.00.0760"                "03.52"
           Data_Source_Name            Driver_Name             Driver_Ver
                     "MSDE"         "SQLSRV32.DLL"           "03.85.1117"
                   ODBC_Ver            Server_Name
               "03.52.0000"                  "AUK"
     ## End(Not run)

