Determining the scope of resource limits

The scope parameter (for example, sp_add_resource_limit scope or sp_help_resource_limit scope) specifies the duration of a limit in Transact-SQL statements. The possible limit scopes are query, query batch, and transaction: