@@ -53,11 +53,11 @@ public RunningQueries()
5353
5454 private DataGridViewColumn [ ] RunningQueryColumns =>
5555 new DataGridViewColumn [ ] {
56- new DataGridViewLinkColumn ( ) { HeaderText = "Instance" , DataPropertyName = "InstanceDisplayName" , Name = "colInstance" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 60 , LinkColor = DashColors . LinkColor , Frozen = Common . FreezeKeyColumn } ,
57- new DataGridViewLinkColumn ( ) { HeaderText = "Session ID" , DataPropertyName = "session_id" , Name = "colSessionID" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 60 , LinkColor = DashColors . LinkColor , Frozen = Common . FreezeKeyColumn } ,
58- new DataGridViewLinkColumn ( ) { HeaderText = "Batch Text" , DataPropertyName = "batch_text" , Name = "colBatchText" , SortMode = DataGridViewColumnSortMode . Automatic , LinkColor = DashColors . LinkColor } ,
59- new DataGridViewLinkColumn ( ) { HeaderText = "Text" , DataPropertyName = "text" , Name = "colText" , SortMode = DataGridViewColumnSortMode . Automatic , LinkColor = DashColors . LinkColor } ,
60- new DataGridViewLinkColumn ( ) { HeaderText = "Plan" , DataPropertyName = "has_plan" , Name = "colQueryPlan" , SortMode = DataGridViewColumnSortMode . Automatic , Visible = true , LinkColor = DashColors . LinkColor , ToolTipText = "Click link to view query plan" } ,
56+ new DataGridViewLinkColumn ( ) { HeaderText = "Instance" , DataPropertyName = "InstanceDisplayName" , Name = "colInstance" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 60 , Frozen = Common . FreezeKeyColumn } ,
57+ new DataGridViewLinkColumn ( ) { HeaderText = "Session ID" , DataPropertyName = "session_id" , Name = "colSessionID" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 60 , Frozen = Common . FreezeKeyColumn } ,
58+ new DataGridViewLinkColumn ( ) { HeaderText = "Batch Text" , DataPropertyName = "batch_text" , Name = "colBatchText" , SortMode = DataGridViewColumnSortMode . Automatic } ,
59+ new DataGridViewLinkColumn ( ) { HeaderText = "Text" , DataPropertyName = "text" , Name = "colText" , SortMode = DataGridViewColumnSortMode . Automatic } ,
60+ new DataGridViewLinkColumn ( ) { HeaderText = "Plan" , DataPropertyName = "has_plan" , Name = "colQueryPlan" , SortMode = DataGridViewColumnSortMode . Automatic , Visible = true , ToolTipText = "Click link to view query plan" } ,
6161 new DataGridViewTextBoxColumn ( ) { HeaderText = "Blocking Session ID" , DataPropertyName = "blocking_session_id" , Name = "colBlockingSessionID" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 60 , ToolTipText = "ID of the session directly blocking the current query. 0 = Not blocked." , DefaultCellStyle = new DataGridViewCellStyle ( ) { ForeColor = Color . White } } ,
6262 new DataGridViewTextBoxColumn ( ) { HeaderText = "Blocking Hierarchy" , DataPropertyName = "BlockingHierarchy" , SortMode = DataGridViewColumnSortMode . Automatic , Visible = blockedCount > 0 , MinimumWidth = 70 , ToolTipText = "Identifies all the session IDs that are involved in the blocking chain for each query starting with the root blocker." } ,
6363 new DataGridViewCheckBoxColumn { HeaderText = "Root Blocker" , DataPropertyName = "IsRootBlocker" , Name = "colIsRootBlocker" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 60 , Visible = blockedCount > 0 , ToolTipText = "Root blocker is the query at the head of the blocking chain. This query is not blocked but it's holding locks that other queries are waiting for." } ,
@@ -78,10 +78,10 @@ public RunningQueries()
7878 new DataGridViewTextBoxColumn ( ) { Name = "colIdleTimeSec" , HeaderText = "Idle Time (sec)" , DataPropertyName = "sleeping_session_idle_time_sec" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , ToolTipText = "Sleeping session idle time (seconds)" , Visible = false } ,
7979 new DataGridViewTextBoxColumn ( ) { HeaderText = "Wait Time (ms)" , DataPropertyName = "wait_time" , Name = "colWaitTime" , SortMode = DataGridViewColumnSortMode . Automatic , DefaultCellStyle = Common . DataGridViewNumericCellStyle , MinimumWidth = 60 } ,
8080 new DataGridViewTextBoxColumn ( ) { HeaderText = "Wait Type" , DataPropertyName = "wait_type" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 } ,
81- new DataGridViewLinkColumn ( ) { HeaderText = "Top Session Waits" , DataPropertyName = "TopSessionWaits" , Name = "colTopSessionWaits" , AutoSizeMode = DataGridViewAutoSizeColumnMode . None , Width = 50 , SortMode = DataGridViewColumnSortMode . Automatic , LinkColor = DashColors . LinkColor } ,
81+ new DataGridViewLinkColumn ( ) { HeaderText = "Top Session Waits" , DataPropertyName = "TopSessionWaits" , Name = "colTopSessionWaits" , AutoSizeMode = DataGridViewAutoSizeColumnMode . None , Width = 50 , SortMode = DataGridViewColumnSortMode . Automatic } ,
8282 new DataGridViewTextBoxColumn ( ) { HeaderText = "Object ID" , DataPropertyName = "object_id" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 } ,
8383 new DataGridViewTextBoxColumn ( ) { HeaderText = "Object Name" , DataPropertyName = "object_name" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 } ,
84- new DataGridViewLinkColumn { Name = "colSnapshotDateLink" , HeaderText = "Snapshot Date" , DataPropertyName = "SnapshotDate" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , LinkColor = DashColors . LinkColor } ,
84+ new DataGridViewLinkColumn { Name = "colSnapshotDateLink" , HeaderText = "Snapshot Date" , DataPropertyName = "SnapshotDate" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 } ,
8585 new DataGridViewTextBoxColumn ( ) { HeaderText = "% Complete" , DataPropertyName = "percent_complete" , SortMode = DataGridViewColumnSortMode . Automatic , DefaultCellStyle = Common . DataGridViewNumericCellStyle , MinimumWidth = 60 } ,
8686 new DataGridViewTextBoxColumn ( ) { Name = "colOpenTransactionCount" , HeaderText = "Open Transaction Count" , DataPropertyName = "open_transaction_count" , SortMode = DataGridViewColumnSortMode . Automatic , DefaultCellStyle = Common . DataGridViewNumericCellStyle , MinimumWidth = 60 } ,
8787 new DataGridViewTextBoxColumn ( ) { HeaderText = "Transaction Isolation Level" , DataPropertyName = "transaction_isolation_level" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 } ,
@@ -97,7 +97,7 @@ public RunningQueries()
9797 new DataGridViewTextBoxColumn ( ) { HeaderText = "Last Request Start Time" , DataPropertyName = "last_request_start_time" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , Visible = false } ,
9898 new DataGridViewTextBoxColumn ( ) { HeaderText = "Last Request End Time" , DataPropertyName = "last_request_end_time" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , Visible = false } ,
9999 new DataGridViewTextBoxColumn ( ) { HeaderText = "Last Request Duration" , DataPropertyName = "last_request_duration" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , Visible = false } ,
100- new DataGridViewLinkColumn ( ) { HeaderText = "Wait Resource" , DataPropertyName = "wait_resource" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , LinkColor = DashColors . LinkColor , Name = "colWaitResource" } ,
100+ new DataGridViewLinkColumn ( ) { HeaderText = "Wait Resource" , DataPropertyName = "wait_resource" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , Name = "colWaitResource" } ,
101101 new DataGridViewTextBoxColumn ( ) { HeaderText = "Wait Resource Type" , DataPropertyName = "wait_resource_type" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , Visible = hasWaitResource } ,
102102 new DataGridViewTextBoxColumn ( ) { HeaderText = "Wait Database ID" , DataPropertyName = "wait_database_id" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , Visible = hasWaitResource } ,
103103 new DataGridViewTextBoxColumn ( ) { HeaderText = "Wait Database" , DataPropertyName = "wait_db" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , Visible = hasWaitResource } ,
@@ -113,10 +113,10 @@ public RunningQueries()
113113 new DataGridViewCheckBoxColumn ( ) { HeaderText = "Wait Is Compile" , DataPropertyName = "wait_is_compile" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , Visible = hasWaitResource } ,
114114 new DataGridViewTextBoxColumn ( ) { HeaderText = "Page Type" , DataPropertyName = "page_type" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , Visible = hasWaitResource } ,
115115 new DataGridViewTextBoxColumn ( ) { HeaderText = "Login Time" , DataPropertyName = "login_time" , SortMode = DataGridViewColumnSortMode . Automatic , MinimumWidth = 40 , } ,
116- new DataGridViewLinkColumn ( ) { HeaderText = "SQL Handle" , DataPropertyName = "sql_handle" , SortMode = DataGridViewColumnSortMode . Automatic , Name = "colSQLHandle" , LinkColor = DashColors . LinkColor } ,
117- new DataGridViewLinkColumn ( ) { HeaderText = "Plan Handle" , DataPropertyName = "plan_handle" , SortMode = DataGridViewColumnSortMode . Automatic , Name = "colPlanHandle" , LinkColor = DashColors . LinkColor } ,
118- new DataGridViewLinkColumn ( ) { HeaderText = "Query Hash" , DataPropertyName = "query_hash" , SortMode = DataGridViewColumnSortMode . Automatic , Name = "colQueryHash" , LinkColor = DashColors . LinkColor } ,
119- new DataGridViewLinkColumn ( ) { HeaderText = "Query Plan Hash" , DataPropertyName = "query_plan_hash" , SortMode = DataGridViewColumnSortMode . Automatic , Name = "colQueryPlanHash" , LinkColor = DashColors . LinkColor } ,
116+ new DataGridViewLinkColumn ( ) { HeaderText = "SQL Handle" , DataPropertyName = "sql_handle" , SortMode = DataGridViewColumnSortMode . Automatic , Name = "colSQLHandle" } ,
117+ new DataGridViewLinkColumn ( ) { HeaderText = "Plan Handle" , DataPropertyName = "plan_handle" , SortMode = DataGridViewColumnSortMode . Automatic , Name = "colPlanHandle" } ,
118+ new DataGridViewLinkColumn ( ) { HeaderText = "Query Hash" , DataPropertyName = "query_hash" , SortMode = DataGridViewColumnSortMode . Automatic , Name = "colQueryHash" } ,
119+ new DataGridViewLinkColumn ( ) { HeaderText = "Query Plan Hash" , DataPropertyName = "query_plan_hash" , SortMode = DataGridViewColumnSortMode . Automatic , Name = "colQueryPlanHash" } ,
120120 new DataGridViewTextBoxColumn ( ) { HeaderText = "Context Info" , DataPropertyName = "context_info" , SortMode = DataGridViewColumnSortMode . Automatic , Name = "colContextInfo" , Visible = hasContextInfo } ,
121121 new DataGridViewTextBoxColumn { HeaderText = "InstanceID" , DataPropertyName = "InstanceID" , Name = "colInstanceID" , Visible = false } ,
122122 } ;
@@ -130,7 +130,7 @@ public RunningQueries()
130130 new DataGridViewTextBoxColumn ( ) { HeaderText = "Max Wait Time (ms)" , DataPropertyName = "max_wait_time_ms" , DefaultCellStyle = Common . DataGridViewNumericCellStyle } ,
131131 new DataGridViewTextBoxColumn ( ) { HeaderText = "Signal Wait Time (ms)" , DataPropertyName = "signal_wait_time_ms" , DefaultCellStyle = Common . DataGridViewNumericCellStyle } ,
132132 new DataGridViewTextBoxColumn ( ) { HeaderText = "Signal Wait %" , DataPropertyName = "signal_wait_pct" , DefaultCellStyle = new DataGridViewCellStyle ( ) { Format = "P1" } } ,
133- new DataGridViewLinkColumn ( ) { HeaderText = "Help" , Text = "help" , UseColumnTextForLinkValue = true , Name = "colHelp" , LinkColor = DashColors . LinkColor }
133+ new DataGridViewLinkColumn ( ) { HeaderText = "Help" , Text = "help" , UseColumnTextForLinkValue = true , Name = "colHelp" }
134134 } ;
135135
136136 public void SetContext ( DBADashContext _context )
@@ -276,9 +276,9 @@ private void LoadSummaryData()
276276 dgv . AutoGenerateColumns = false ;
277277 dgv . Columns . AddRange (
278278 new DataGridViewTextBoxColumn ( ) { HeaderText = "InstanceID" , DataPropertyName = "InstanceID" , Name = "colInstanceID" , Visible = false , Frozen = Common . FreezeKeyColumn } ,
279- new DataGridViewLinkColumn ( ) { HeaderText = "Instance" , DataPropertyName = "InstanceDisplayName" , Name = "colInstance" , SortMode = DataGridViewColumnSortMode . Automatic , Visible = IsServerLevelSummary , LinkColor = DashColors . LinkColor , Frozen = Common . FreezeKeyColumn } ,
279+ new DataGridViewLinkColumn ( ) { HeaderText = "Instance" , DataPropertyName = "InstanceDisplayName" , Name = "colInstance" , SortMode = DataGridViewColumnSortMode . Automatic , Visible = IsServerLevelSummary , Frozen = Common . FreezeKeyColumn } ,
280280 new DataGridViewTextBoxColumn ( ) { HeaderText = "Instance " , DataPropertyName = "InstanceDisplayName" , SortMode = DataGridViewColumnSortMode . Automatic , Visible = ! IsServerLevelSummary , Frozen = Common . FreezeKeyColumn } ,
281- new DataGridViewLinkColumn ( ) { HeaderText = "Snapshot Date" , DataPropertyName = "SnapshotDate" , Name = "colSnapshotDate" , SortMode = DataGridViewColumnSortMode . Automatic , LinkColor = DashColors . LinkColor } ,
281+ new DataGridViewLinkColumn ( ) { HeaderText = "Snapshot Date" , DataPropertyName = "SnapshotDate" , Name = "colSnapshotDate" , SortMode = DataGridViewColumnSortMode . Automatic } ,
282282 new DataGridViewTextBoxColumn ( ) { HeaderText = "Running Queries" , DataPropertyName = "RunningQueries" , SortMode = DataGridViewColumnSortMode . Automatic , DefaultCellStyle = Common . DataGridViewNumericCellStyle } ,
283283 new DataGridViewTextBoxColumn ( ) { HeaderText = "Blocked Queries" , DataPropertyName = "BlockedQueries" , SortMode = DataGridViewColumnSortMode . Automatic , DefaultCellStyle = Common . DataGridViewNumericCellStyle } ,
284284 new DataGridViewTextBoxColumn ( ) { HeaderText = "Blocked Queries Wait" , DataPropertyName = "BlockedQueriesWait" , SortMode = DataGridViewColumnSortMode . Automatic , DefaultCellStyle = Common . DataGridViewNumericCellStyle } ,
@@ -838,7 +838,7 @@ private void GroupSnapshot(string group)
838838 dgv . Columns . Clear ( ) ;
839839 dgv . AutoGenerateColumns = false ;
840840 dgv . Columns . AddRange (
841- new DataGridViewLinkColumn ( ) { DataPropertyName = group , HeaderText = group , Name = "colGroup" , SortMode = DataGridViewColumnSortMode . Automatic , LinkColor = DashColors . LinkColor } ,
841+ new DataGridViewLinkColumn ( ) { DataPropertyName = group , HeaderText = group , Name = "colGroup" , SortMode = DataGridViewColumnSortMode . Automatic } ,
842842 new DataGridViewTextBoxColumn ( ) { DataPropertyName = "execution_count" , HeaderText = "Execution Count" , SortMode = DataGridViewColumnSortMode . Automatic , DefaultCellStyle = Common . DataGridViewNumericCellStyle } ,
843843 new DataGridViewTextBoxColumn ( ) { DataPropertyName = "sum_reads" , HeaderText = "Sum Reads" , SortMode = DataGridViewColumnSortMode . Automatic , DefaultCellStyle = Common . DataGridViewNumericCellStyle } ,
844844 new DataGridViewTextBoxColumn ( ) { DataPropertyName = "sum_logical_reads" , HeaderText = "Sum Logical Reads" , SortMode = DataGridViewColumnSortMode . Automatic , DefaultCellStyle = Common . DataGridViewNumericCellStyle } ,
0 commit comments