odbcGetInfo(channel)
odbcTables(channel)
odbcColumns(channel, table)
odbcPrimaryKeys(channel, table)
odbcGetErrMsg(channel)
odbcClearError(channel)
odbcQuery(channel, query)
odbcFetchRow(channel)
odbcFetchRows(channel, max = 0, transposing = FALSE, buffsize = 1000,
nullstring = "NA")
odbcColData(channel)
odbcNumRows(channel)
odbcNumFields(channel)
odbcNumCols(channel)
odbcConnect()
SQL_NULL_DATA
items
from the database.odbcGetErrMsg
.
The exception is that an invalid channel returns -2. Examples are
present in the odbcGetInfo
reports the details provided by the ODBC driver and
database about their makes and versions.
odbcFetchRows
returns a matrix of the pending
rowset in $data
limited to max
rows if
max
is greater than 0. buffsize
may be increased from the
default of 1000 (rows*cols) for increased performance in a large dataset.
This only has an effect with servers that do not return the number of rows
affected by a query e.g. MSAccess, MSSqlServer.
If transposing
is TRUE
the matrix will be transposed.
This function is called by sqlGetResults
, which then
converts the
matrix to a dataframe. This step incurs a significant performance
penalty and working with matrices is much faster in large rowsets.
odbcFetchRow
is a deprecated function that returns
a vector comprising the next row of the waiting rowset.sqlQuery
, odbcConnect