# NOT RUN {
conn = odbcConnect('MyDataSource')
sqlPrepare(conn, "SELECT * FROM myTable WHERE column = ?")
sqlExecute(conn, NULL, 'myValue')
sqlFetchMore(conn)
# with a query timeout
sqlPrepare(conn, "SELECT * FROM myTable WHERE column = ?", query_timeout=60)
sqlExecute(conn, data='myValue', fetch=TRUE)
# }
Run the code above in your browser using DataLab