Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.resource_governor_workload_groups

  No additional text.


Syntax
CREATE VIEW sys.resource_governor_workload_groups
AS
    -- ISSUE - VSTS 83011
    -- Use isnull() below because Algebrizer doesn't properly
    -- determine these columns are non-nullable.
    SELECT
        group_id                    = co.id, -- group id
        name                        = co.name,
        importance                  = isnull(convert(sysname,case
                                                     when (co.status / 0x100) = 1 then 'Low'    -- x_ergi_Low
                                                     when (co.status / 0x100) = 3 then 'Medium' -- x_ergi_Medium
                                                     when (co.status / 0x100) = 9 then 'High'   -- x_ergi_High
                                                     end),
                                              0),
        request_max_memory_grant_percent = isnull(co.status % 0x100, 0),
        request_max_cpu_time_sec         = co.intprop,
        request_memory_grant_timeout_sec = isnull(convert(int, convert(bigint, ov.value) % 0x100000000), 0),
        max_dop                          = isnull(convert(int, convert(bigint, ov_maxdop.value) % 0x100000000), 0),
        group_max_requests               = isnull(convert(int, convert(bigint, ov.value) / 0x100000000), 0),
        pool_id                          = sor.indepid
    FROM
        master.sys.sysclsobjs co INNER JOIN
        master.sys.syssingleobjrefs sor ON
        (
            co.class = 53 AND   -- SOC_RG_GROUP
            co.id = sor.depid AND
            sor.class = 13 AND  -- SRC_RG_GROUP_TO_POOL
            sor.depsubid = 0 AND
            sor.indepsubid = 0
        ) INNER JOIN
        master.sys.sysobjvalues ov ON
        (
            co.class = 53 AND   -- SOC_RG_GROUP
            co.id = ov.objid AND
            ov.valclass = 64 AND -- SVC_RG_GROUP
            ov.subobjid = 0 AND
            ov.valnum = 0
        ) LEFT JOIN
        master.sys.sysobjvalues ov_maxdop ON
        (
            co.class = 53 AND   -- SOC_RG_GROUP
            co.id = ov_maxdop.objid AND
            ov_maxdop.valclass = 64 AND -- SVC_RG_GROUP
            ov_maxdop.subobjid = 0 AND
            ov_maxdop.valnum = 1
        )
    WHERE
        has_access('RG', 0) = 1

 
Last revision 2008RTM
See also

  dm_resource_governor_workload_groups (View)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash