Learn R Programming

RODBCext (version 0.3.2)

odbcGetQueryTimeout: Gets the current query timeout of a prepared query

Description

A query has to be already prepared using SQLPrepare()

Throws an error if an error occured

Usage

odbcGetQueryTimeout(channel)

Arguments

channel

an RODBC channel containing an open connection

Value

The current query timeout value in seconds. 0 means "no timeout"

See Also

odbcSetQueryTimeout, odbcConnect, odbcDriverConnect

Examples

Run this code
# NOT RUN {
  conn = odbcConnect('MyDataSource')
  
  sqlPrepare(conn, "SELECT * FROM myTable WHERE column = ?")
  odbcGetQueryTimeout(conn)   # shows the current query timeout of the prepared statement
  sqlExecute(conn, 'myValue')
  sqlFetchMore(conn)
# }

Run the code above in your browser using DataLab