Windows 上的 MSSQL: Windows 上的数据源数据库引擎资源池

Microsoft.SQLServer.Windows.DataSource.ResourcePool (DataSourceModuleType)

此数据源将发现 SQL Server 数据库引擎的给定实例的所有资源池。

Element properties:

TypeDataSourceModuleType
IsolationAny
AccessibilityInternal
RunAsMicrosoft.SQLServer.Core.RunAs.Discovery
OutputTypeSystem.Discovery.Data

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.Windows.DataSource.ResourcePoolProbe Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
OnlyInMemoryOLTPPoolsstring$Config/OnlyInMemoryOLTPPools$忽略没有内存优化数据的池必须设置为 "true" 或 "false"。将此属性设置为 true 时,发现只会发现拥有绑定数据库的池。可以使用 sys.sp_xtp_bind_db_resource_pool 函数将数据库绑定到池。
IntervalSecondsint$Config/IntervalSeconds$间隔(秒)运行工作流的重复间隔时间(秒)。
SqlTimeoutSecondsint$Config/SqlTimeoutSeconds$
TimeoutSecondsint$Config/TimeoutSeconds$超时(秒)指定工作流在关闭之前允许运行的时间,并标记为失败。
SyncTimestring$Config/SyncTime$同步时间使用 24 小时格式指定的同步时间。可以忽略。

Source Code:

<DataSourceModuleType ID="Microsoft.SQLServer.Windows.DataSource.ResourcePool" Accessibility="Internal" RunAs="SqlCoreLib!Microsoft.SQLServer.Core.RunAs.Discovery">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MachineName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NetbiosComputerName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="InstanceName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ConnectionString" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="InstanceVersion" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="InstanceEdition" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MonitoringType" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="OnlyInMemoryOLTPPools" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SqlTimeoutSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TimeoutSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SyncTime" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="OnlyInMemoryOLTPPools" ParameterType="string" Selector="$Config/OnlyInMemoryOLTPPools$"/>
<OverrideableParameter ID="IntervalSeconds" ParameterType="int" Selector="$Config/IntervalSeconds$"/>
<OverrideableParameter ID="SqlTimeoutSeconds" ParameterType="int" Selector="$Config/SqlTimeoutSeconds$"/>
<OverrideableParameter ID="TimeoutSeconds" ParameterType="int" Selector="$Config/TimeoutSeconds$"/>
<OverrideableParameter ID="SyncTime" ParameterType="string" Selector="$Config/SyncTime$"/>
</OverrideableParameters>
<ModuleImplementation>
<Composite>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.Windows.DataSource.ResourcePoolProbe">
<MachineName>$Config/MachineName$</MachineName>
<NetbiosComputerName>$Config/NetbiosComputerName$</NetbiosComputerName>
<InstanceName>$Config/InstanceName$</InstanceName>
<ConnectionString>$Config/ConnectionString$</ConnectionString>
<DiscoveryType>ResourcePool</DiscoveryType>
<DatabaseName/>
<OnlyInMemoryOLTPPools>$Config/OnlyInMemoryOLTPPools$</OnlyInMemoryOLTPPools>
<InstanceVersion>$Config/InstanceVersion$</InstanceVersion>
<InstanceEdition>$Config/InstanceEdition$</InstanceEdition>
<MonitoringType>$Config/MonitoringType$</MonitoringType>
<Login>$RunAs[Name="SqlCoreLib!Microsoft.SQLServer.Core.RunAs.SqlCredentials"]/UserName$</Login>
<Password>$RunAs[Name="SqlCoreLib!Microsoft.SQLServer.Core.RunAs.SqlCredentials"]/Password$</Password>
<InternalPoolClassId>$MPElement[Name='Microsoft.SQLServer.Windows.InternalPool']$</InternalPoolClassId>
<DefaultPoolClassId>$MPElement[Name='Microsoft.SQLServer.Windows.DefaultPool']$</DefaultPoolClassId>
<UserDefinedResourcePoolClassId>$MPElement[Name='Microsoft.SQLServer.Windows.UserDefinedPool']$</UserDefinedResourcePoolClassId>
<DatabaseReferencesUserResourcePoolRelationshipId>$MPElement[Name='Microsoft.SQLServer.Windows.DatabaseReferencesUserResourcePool']$</DatabaseReferencesUserResourcePoolRelationshipId>
<DatabaseClassId>$MPElement[Name='Microsoft.SQLServer.Windows.Database']$</DatabaseClassId>
<DiscoverySourceObjectId>$MPElement$</DiscoverySourceObjectId>
<DiscoverySourceManagedEntityId>$Target/Id$</DiscoverySourceManagedEntityId>
<SqlTimeoutSeconds>$Config/SqlTimeoutSeconds$</SqlTimeoutSeconds>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<Publisher>SQLDiscoveryWindows</Publisher>
<ManagementGroupName>$Target/ManagementGroup/Name$</ManagementGroupName>
</DataSource>
</MemberModules>
<Composition>
<Node ID="DS"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.Discovery.Data</OutputType>
</DataSourceModuleType>