更改现有的服务。
语法
参数
备注
示例
A. 更改服务队列
下面的示例将 //Adventure-Works.com/Expenses 服务更改为使用队列 NewQueue。
ALTER SERVICE [//Adventure-Works.com/Expenses]
ON QUEUE NewQueue ;
B. 向服务中添加新约定
下面的示例将 //Adventure-Works.com/Expenses 服务更改为允许在 //Adventure-Works.com/Expenses 约定上进行对话。
ALTER SERVICE [//Adventure-Works.com/Expenses]
(ADD CONTRACT [//Adventure-Works.com/Expenses/ExpenseSubmission]) ;
C. 向此服务中添加新约定,并删除现有约定
下面的示例将 //Adventure-Works.com/Expenses 服务更改为允许在 //Adventure-Works.com/Expenses/ExpenseProcessing 约定上进行对话,而不允许在 //Adventure-Works.com/Expenses/ExpenseSubmission 约定上进行对话。
ALTER SERVICE [//Adventure-Works.com/Expenses]
(ADD CONTRACT [//Adventure-Works.com/Expenses/ExpenseProcessing],
DROP CONTRACT [//Adventure-Works.com/Expenses/ExpenseSubmission]) ;