The ssbdiagnose utility analyzes the configuration between two Service Broker services, or for a single service. The utility also analyzes running conversations for errors. If a running conversation encounters errors, ssbdiagnose analyzes the Service Broker configuration that is used by the conversation. Errors are reported either in the command prompt window as human-readable text, or as formatted XML that can be redirected to a file or another program.
Ssbdiagnose.exe is a command line application that comes with Microsoft SQL Server 2008. It usually resides in C:\%ProgramFiles%\Microsoft SQL Server\100\Tools\Binn . The documentation can be found here.
ssbdiagnose 实用工具可报告 Service Broker 会话或 Service Broker 服务配置中的问题。可为两个服务或单个服务执行配置检查。检查出的问题在命令提示符窗口以可读文本的形式报告,或输出为可重定向到文件或其他程序的格式化 XML。

关于 ssbdiagnose 工具的具体用法,可以参考如下链接:
How to Communicate Between SSBS Applications Across Instances




下面的范例代码实现两个View 动态切换。



