简体   繁体   English

在SQL Server中查询Service Broker队列的文件组

[英]Query for file group of Service Broker Queue in SQL Server

How do you query the file group of a Service Broker Queue object in SQL Server? 如何在SQL Server中查询Service Broker队列对象的文件组?

I can see the information via SQL Server Management Studio, by looking at the Properties of the Queue, but I'd like to be able to query for the information in a script. 通过查看队列的属性,我可以通过SQL Server Management Studio查看信息,但是我希望能够在脚本中查询信息。

It doesn't seem I can use the same methods as for querying the filegroup of a table - but maybe I've missed something? 似乎我无法使用与查询表文件组相同的方法-但也许我错过了一些东西?

You have to look for the internal table with parent_object_id matching the queue: 您必须查找具有与队列匹配的parent_object_id的内部表:

select o.* 
from sys.service_queues q
join sys.objects o on o.parent_object_id = q.object_id;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM