Determining the scope of resource limits

The scope parameter specifies the duration of a limit in Transact-SQL statements. The possible limit scopes are query, query batch, and transaction: