odbcSetTransactionIsolationLevel function

Set the Transaction Isolation Level for a Connection

Set the Transaction Isolation Level for a Connection

odbcSetTransactionIsolationLevel(conn, levels)

Arguments

  • conn: A DBI::DBIConnection object, as returned by dbConnect().
  • levels: One or more of 'read_uncommitted', 'read_committed', 'repeatable_read', 'serializable'.

Examples

## Not run: # Can use spaces or underscores in between words. odbcSetTransactionIsolationLevel(con, "read uncommitted") # Can also use the full constant name. odbcSetTransactionIsolationLevel(con, "SQL_TXN_READ_UNCOMMITTED") ## End(Not run)

See Also

https://learn.microsoft.com/en-us/sql/odbc/reference/develop-app/setting-the-transaction-isolation-level

  • Maintainer: Hadley Wickham
  • License: MIT + file LICENSE
  • Last published: 2025-03-27