Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.dm_exec_query_memory_grants

  No additional text.


Syntax
CREATE VIEW sys.dm_exec_query_memory_grants AS
	SELECT A.session_id, A.request_id, A.scheduler_id, A.dop, A.request_time, A.grant_time,
	A.requested_memory_kb, A.granted_memory_kb, A.required_memory_kb, A.used_memory_kb, A.max_used_memory_kb,
	A.query_cost, A.timeout_sec,
	sysconv(smallint, A.is_small) as resource_semaphore_id,
	B.queue_id, B.wait_order, B.is_next_candidate, B.wait_time_ms,
	A.plan_handle, A.sql_handle,
	A.group_id, A.pool_id, A.is_small, A.ideal_memory_kb
	FROM OpenRowset(TABLE DM_EXEC_QE_GRANTSINFO) A
	LEFT OUTER LOOP JOIN OpenRowset(TABLE DM_EXEC_QE_GRANTWAITERS) B
	ON A.session_id=B.session_id and A.request_id=B.request_id and A.sql_handle=B.sql_handle and A.plan_handle=B.plan_handle

 
Last revision 2008RTM
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