Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


RODBC (version 1.0-1)

sqlTypeInfo: Request Information about Column Types in an ODBC Database

Description

Request information about column types in an ODBC database

Usage

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

Arguments

channel
connection handle as returned by odbcConnect.
type
The types of columns about which information is requested. Possible values are "all", "char", "varchar", "real", "double", "integer", "smallint", "timestamp".
errors
if TRUE halt and display error, else return -1
as.is

Value

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

Details

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.

See Also

sqlGetResults, odbcGetInfo