ALTER BROKER PRIORITY (Transact-SQL)
SQL Server 2008
Changes the properties of a Service Broker conversation priority.
No properties that are changed by ALTER BROKER PRIORITY are applied to existing conversations. The existing conversations continue with the priority that was assigned when they were started.
For more information, see CREATE BROKER PRIORITY (Transact-SQL).
A. Changing only the priority level of an existing conversation priority.
Changes the priority level, but does not change the contract, local service, or remote service properties.
ALTER BROKER PRIORITY SimpleContractDefaultPriority FOR CONVERSATION SET (PRIORITY_LEVEL = 3);
B. Changing all of the properties of an existing conversation priority.
Changes the priority level, contract, local service, and remote service properties.
ALTER BROKER PRIORITY SimpleContractPriority FOR CONVERSATION SET (CONTRACT_NAME = SimpleContractB, LOCAL_SERVICE_NAME = TargetServiceB, REMOTE_SERVICE_NAME = N'InitiatorServiceB', PRIORITY_LEVEL = 8);

