{"title":"TransactionType Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-transactiontype-property/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-transactiontype-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-transactiontype-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Sets the transaction type.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":87,"chars":32},{"level":2,"title":"Property value","slug":"property-value","at":119,"chars":686},{"level":2,"title":"Remarks","slug":"remarks","at":805,"chars":4481},{"level":2,"title":"Related information","slug":"related-information","at":5286,"chars":216}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets the transaction type.\n## Applies to\n Xml Port\n Report\n## Property value\nValue|Available or changed with|Description\nUpdateNoLocks|runtime version 1.0|All read operations are performed with READ UNCOMMITTED locking until the table is either modified by a write operation or locked with the LOCKTABLE method.\nUpdate|runtime version 1.0|All read operations are performed with REPEATABLE READ locking until the table is either modified by any write operation or locked with the LOCKTABLE method.\nSnapshot|runtime version 1.0|ll read operations are performed with REPEATABLE READ locking.\nBrowse|runtime version 1.0|All read operations are performed with READ UNCOMMITTED locking.\nReport|runtime version 1.0|Maps to the Browse transaction type.\n## Remarks\nThere are four basic transaction types: Browse, Snapshot, UpdateNoLocks, and Update. Additionally, there is a Report type that maps to the Browse transaction type. Each transaction type defines the behavior of a transaction in Dynamics 365 Business Central and takes effect from the start of a transaction. A transaction starts at the start of the outermost code or immediately after the ../methods-auto/database/database-commit-method is called. A transaction ends at the end of the outermost code or when the Commit method is called. For example, if a method in a codeunit calls another codeunit, then a new transaction is not started at the start of the second codeunit.\nThe following table shows transaction behavior with SQL Server.\nTransaction Type|Behavior\nBrowse|This is a read-only transaction. Modifications cannot occur within the transaction. All read operations are performed with READ UNCOMMITTED locking. Therefore, no locks are added and locks that are added by other sessions are not honored. This means that the transaction may read uncommitted data.<br /><br /> For more information about READ UNCOMMITTED locking, see https://learn.microsoft.com/sql/t-sql/statements/set-transaction-isolation-level-transact-sql in the MSDN Library.\nSnapshot|This is a read-only transaction. Modifications cannot occur within the transaction. All read operations are performed with REPEATABLE READ locking. Therefore, shared locks are added on all data and are maintained until the end of the transaction. This prevents other transactions from modifying any rows that have been read by the current transaction.<br /><br /> For more information about REPEATABLE READ locking, see https://learn.microsoft.com/sql/t-sql/statements/set-transaction-isolation-level-transact-sql in the MSDN Library.\nUpdateNoLocks|This is an update transaction. Modifications can occur within the transaction. All read operations are performed with READ UNCOMMITTED locking until the table is either modified by a write operation or locked with the ../methods-auto/record/record-locktable-method. From this point until the end of the transaction, all read operations are performed with UPDLOCK locking.<br /><br /> For more information about UPDLOCK locking, see https://learn.microsoft.com/sql/t-sql/queries/hints-transact-sql-table in the MSDN Library.<br /><br /> This transaction type improves concurrency for all tables that users access within the transaction by delaying locking as much as it can. However, the disadvantage is that you must know when to lock the tables for the required transaction behavior.<br /><br /> This is the default transaction type if you have not specified a type with the ../methods-auto/database/database-currenttransactiontype-method.\nUpdate|This is an update transaction. Modifications can occur within the transaction. All read operations are performed with REPEATABLE READ locking until the table is either modified by any write operation or locked with the LockTable method. From this point forward, all read operations are performed with UPDLOCK locking.<br /><br /> This transaction type provides full transaction isolation from the start of the transaction, regardless of the lock status of tables that users access within the transaction.\n> NOTE\n> In earlier versions of Dynamics 365 Business Central, the Snapshot and Update transaction types performed read operations with SERIALIZABLE locking until the table was either modified by a write operation or locked with the LockTable method. In Dynamics 365 Business Central, these transaction types perform read operations with REPEATABLE READ locking until the table is either modified by a write operation or locked with the LockTable method.\n> Phantom reads cannot occur with SERIALIZABLE locking because the filter range is locked instead of the records. Phantom reads can occur with REPEATABLE READ locking because only the records are locked. You should know this difference when you upgrade from an earlier version to Dynamics 365 Business Central. For more information about phantom reads, see Concurrency Effects<https://learn.microsoft.com/previous-versions/sql/sql-server-2008-r2/ms190805(v=sql.105)> in the MSDN Library.\nReport and XMLport objects have a TransactionType property, which you can view and modify in the Properties window. The TransactionType property that is specified on a report or XMLport object is used only when you run the report or XMLport from Object Designer.\n## Related information\nIsolation Levels in the Database Engine<https://learn.microsoft.com/previous-versions/sql/sql-server-2008-r2/ms189122(v=sql.105)>\n../methods-auto/database/database-currenttransactiontype-method"}