1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576
|
// NOTE: This file contains sample views and comments.
// NOTE: Every sample view is a valid view for the Historical Server.
// NOTE: Since the Historical Server will not ignore the comment
// NOTE: lines, these lines should be excluded from the text
// NOTE: passed to the Historical Server.
// Server Performance Summary
// This view represents overall SQL Server performance.
// It shows the number of lock requests per second, the
// percentage of the sample interval when the SQL Server was busy,
// the number of transactions processed per second, and the number
// of times the SQL Server detected a deadlock during the
// most recent sample interval.
hs_create_view server_perf_sum,
"Lock Count", "Rate for Sample",
"CPU Busy Percent", "Value for Sample",
"Transactions", "Rate for Sample",
"Deadlock Count", "Value for Sample"
// Cache Performance Summary
// This view represents the overall effectiveness of SQL Server
// caches during the most recent sample interval. It shows the
// percentage of data page reads that were satisfied from the SQL
// Server data caches, and the percentage of requests for procedure
// execution that were satisfied from the SQL Server procedure
// cache.
hs_create_view cache_perf_sum,
"Page Hit Percent", "Value for Sample",
"Procedure Hit Percent", "Value for Sample"
// Network Performance Summary
// This view represents the rate of SQL Server activity over all
// its network connections during the most recent sample
// interval. It shows the number of bytes per second that
// were received by and sent by the SQL Server during the
// interval.
hs_create_view network_perf_sum,
"Net Bytes Received", "Rate for Sample",
"Net Bytes Sent", "Rate for Sample"
// Device I/O Performance Summary
// This view represents reads and writes to database devices
// by the SQL Server, accumulated from the start of the recording
// session. It shows the overall rate of reads and writes to
// database devices since the start of the session,
// as well as the most active database device for that time period
// and the rate of reads and writes to the most active device.
hs_create_view device_perf_sum,
"Device I/O", "Rate for Session",
"Most Active Device Name", "Value for Session",
"Most Active Device I/O", "Rate for Session"
// Lock Performance Summary
// This view represents the total number of locks of each type
// requested and granted during the most recent sample interval.
hs_create_view lock_perf_sum,
"Lock Type", "Value for Sample",
"Lock Results Summarized", "Value for Sample",
"Lock Count", "Value for Sample"
// Process State Summary
// This view shows the number of processes that were in each
// process state at the end of the most recent sample interval.
hs_create_view process_perf_sum,
"Process State", "Value for Sample",
"Process State Count", "Value for Sample"
// Device I/O for Sample Interval
// This view represents the I/O activity that occurred
// on the SQL Server's database devices during the most
// recent sample interval. It identifies each device by name.
// Device I/O levels are presented in two ways: as counts
// of total device I/Os, reads and writes during the most
// recent sample interval, and also as rates of total I/Os,
// reads and writes per second during the sample interval.
hs_create_view sample_device_io,
"Device Name", "Value for Sample",
"Device I/O", "Value for Sample",
"Device Reads", "Value for Sample",
"Device Writes", "Value for Sample",
"Device I/O", "Rate for Sample",
"Device Reads", "Rate for Sample",
"Device Writes", "Rate for Sample"
// Device I/O for Recording Session
// This view represents the I/O activity that has occurred
// on the SQL Server's database devices since the start of the
// recording session. It identifies each device by name.
// Device I/O levels are presented in two ways: as counts
// of total device I/Os, reads and writes since the start
// of the session, and also as overall rates of total I/Os,
// reads and writes per second since the session began.
hs_create_view session_device_io,
"Device Name", "Value for Sample",
"Device Reads", "Value for Session",
"Device Writes", "Value for Session",
"Device I/O", "Value for Session",
"Device Reads", "Rate for Session",
"Device Writes", "Rate for Session",
"Device I/O", "Rate for Session"
// Network Activity for Sample Interval
// This view represents the network activity over all of
// the SQL Server's network connections during the most
// recent sample interval. It shows the default packet size,
/ the maximum packet size, and both average packet sizes sent
// and received for the sample interval. The view shows the number of
// packets sent, the number of packets received, and the rate at
// which packets were sent and received. It also shows the number
// of bytes sent and the number of bytes received and the rate
// at which bytes were sent and received.
hs_create_view sample_network_activity,
"Net Default Packet Size", "Value for Sample",
"Net Max Packet Size", "Value for Sample",
"Net Packet Size Sent", "Value for Sample",
"Net Packet Size Received", "Value for Sample",
"Net Packets Sent", "Value for Sample",
"Net Packets Received", "Value for Sample",
"Net Packets Sent", "Rate for Sample",
"Net Packets Received", "Rate for Sample",
"Net Bytes Sent", "Value for Sample",
"Net Bytes Received", "Value for Sample",
"Net Bytes Sent", "Rate for Sample",
"Net Bytes Received", "Rate for Sample"
// Network Activity for Recording Session
// This view represents the network activity over all of
// the SQL Server's network connections since the start of the
// recording session. It shows the default packet size,
// the maximum packet size, and both average packet sizes sent
// and received since the start of the session. The view shows the
// number of packets sent, the number of packets received,
// and the rate at which packets were sent and received.
// It also shows the number of bytes sent and the number of
// bytes received and the rate at which bytes were
// sent and received.
hs_create_view session_network_activity,
"Net Default Packet Size", "Value for Sample",
"Net Max Packet Size", "Value for Sample",
"Net Packet Size Sent", "Value for Session",
"Net Packet Size Received", "Value for Session",
"Net Packets Sent", "Value for Session",
"Net Packets Received", "Value for Session",
"Net Packets Sent", "Rate for Session",
"Net Packets Received", "Rate for Session",
"Net Bytes Sent", "Value for Session",
"Net Bytes Received", "Value for Session",
"Net Bytes Sent", "Rate for Session",
"Net Bytes Received", "Rate for Session"
// Procedure Cache Statistics for Sample Interval
// This view represents the effectiveness of the procedure cache
// of the SQL Server for the most recent sample interval. It
// shows the percentage of requests for stored procedure
// executions that were satisfied by the procedure cache for the
// most recent sample interval. The view also shows the number
// of logical reads and physical reads of stored procedures
// during the most recent sample interval, and the rate of logical
// and physical reads of stored procedures for the most recent
// sample interval.
hs_create_view sample_procedure_cache_stats,
"Procedure Hit Percent", "Value for Sample",
"Procedure Logical Reads", "Value for Sample",
"Procedure Logical Reads", "Rate for Sample",
"Procedure Physical Reads", "Value for Sample",
"Procedure Physical Reads", "Rate for Sample"
// Procedure Cache Statistics for Recording Session
// This view represents the effectiveness of the procedure cache
// of the SQL Server since the start of the recording session. It
// shows the percentage of requests for stored procedure
// executions that were satisfied by the procedure cache.
// The view also shows the number of logical reads and
// physical reads of stored procedures since the start of
// the session, and the overall rate of logical and physical reads
// of stored procedures since the start of the session.
hs_create_view session_procedure_cache_stats,
"Procedure Hit Percent", "Value for Session",
"Procedure Logical Reads", "Value for Session",
"Procedure Logical Reads", "Rate for Session",
"Procedure Physical Reads", "Value for Session",
"Procedure Physical Reads", "Rate for Session"
// Data Cache Statistics for Sample Interval
// This view represents the overall effectiveness of the
// combined data caches of the SQL Server for the most recent
// sample interval. It shows the percentage of requests for
// page reads that were satisfied from cache for the most
// recent sample interval. The view also shows the number
// of logical page reads, physical page reads, and page writes
// for the most recent sample interval and the rate of
// logical page reads, physical page reads, and page writes
// for the most recent sample interval.
hs_create_view sample_page_cache_stats,
"Page Hit Percent", "Value for Sample",
"Logical Page Reads", "Value for Sample",
"Logical Page Reads", "Rate for Sample",
"Physical Page Reads", "Value for Sample",
"Physical Page Reads", "Rate for Sample",
"Page Writes", "Value for Sample",
"Page Writes", "Rate for Sample"
// Data Cache Statistics for Recording Session
// This view represents the overall effectiveness of the
// combined data caches of the SQL Server since the start of
// the recording session. It shows the percentage of requests
// for page reads that were satisfied from cache for the
// recording session. The view also shows the number of
// logical page reads, physical page reads, and page writes for the
// recording session and the rate of logical page reads,
// physical page reads and page writes for the recording session.
hs_create_view session_page_cache_stats,
"Page Hit Percent", "Value for Session",
"Logical Page Reads", "Value for Session",
"Logical Page Reads", "Rate for Session",
"Physical Page Reads", "Value for Session",
"Physical Page Reads", "Rate for Session",
"Page Writes", "Value for Session",
"Page Writes", "Rate for Session"
// Database-Object Page I/O
// This view represents the objects in the SQL Server databases
// and the page I/Os associated with them. It shows the
// SQL Server database name and ID, and the object's name and ID
// within the database. This view shows for each object the
// associated logical page reads, physical page reads, and
// page writes for both the most recent sample interval and
// for the recording session. The Page I/Os recorded for a
// given database object include I/Os against indexes on the table,
// as well as I/Os against pages of the table itself.
hs_create_view object_page_io,
"Database ID", "Value for Sample",
"Database Name", "Value for Sample",
"Object ID", "Value for Sample",
"Object Name", "Value for Sample",
"Logical Page Reads", "Value for Sample",
"Physical Page Reads", "Value for Sample",
"Page Writes", "Value for Sample",
"Logical Page Reads", "Value for Session",
"Physical Page Reads", "Value for Session",
"Page Writes", "Value for Session"
// Process Page I/O
// This view represents the page I/Os summarized on a per SQL
// Server process level for the most recent sample. It shows the
// login name, process ID and kernel process ID for each process
// in the SQL Server that generated page I/Os during the interval.
// This view also shows, on a per process level, the total page I/Os,
// the percentage of page I/O requests that could be satisfied by
// the SQL Server data caches, and the number of logical page reads,
// physical page reads, and page writes for the most recent
// sample interval.
hs_create_view process_page_io,
"Login Name", "Value for Sample",
"Process ID", "Value for Sample",
"Kernel Process ID", "Value for Sample",
"Page I/O", "Value for Sample",
"Page Hit Percent", "Value for Sample",
"Logical Page Reads", "Value for Sample",
"Physical Page Reads", "Value for Sample",
"Page Writes", "Value for Sample"
// Procedure Page I/O
// This view represents page I/Os that occurred while running
// stored procedures during the most recent sample
// interval. For each stored procedure that generated page I/Os
// during the sample interval, it shows the stored procedure name
// and ID, together with the name and ID of the database that
// contains the procedure. If page I/Os were produced when no
// stored procedure was active, those I/Os are associated with
// procedure ID and database ID values of zero.
// This view also shows, on a per stored procedure level,
// the total page I/Os, the percentage of page I/O requests that
// could be satisfied by the SQL Server data caches, and the number
// of logical page reads, physical page reads, and page writes
// generated while executing the stored procedure during the
// most recent sample interval.
hs_create_view procedure_page_cache_io,
"Procedure Database Name", "Value for Sample",
"Procedure Database ID", "Value for Sample",
"Procedure Name", "Value for Sample",
"Procedure ID", "Value for Sample",
"Page I/O", "Value for Sample",
"Page Hit Percent", "Value for Sample",
"Logical Page Reads", "Value for Sample",
"Physical Page Reads", "Value for Sample",
"Page Writes", "Value for Sample"
// Process-Database-Object Page I/O
// This view represents the page I/Os by database object for each
// SQL Server process. It shows the login name, process ID and
// kernel process ID for each process that had page I/Os during
// the most recent sample interval. And for each such process,
// for each database object it accessed the view also shows the
// object name and object ID, and the object's database name and ID,
// plus the page I/Os associated the object.
// The view also shows the total page I/Os, the percentage
// of page I/O requests that could be satisfied by the SQL Server
// data caches, and the number of logical page reads,
// physical page reads, and page writes for the most recent
// sample interval.
hs_create_view process_object_page_io,
"Login Name", "Value for Sample",
"Process ID", "Value for Sample",
"Kernel Process ID", "Value for Sample",
"Database Name", "Value for Sample",
"Database ID", "Value for Sample",
"Object Name", "Value for Sample",
"Object ID", "Value for Sample",
"Object Type", "Value for Sample",
"Page I/O", "Value for Sample",
"Page Hit Percent", "Value for Sample",
"Logical Page Reads", "Value for Sample",
"Physical Page Reads", "Value for Sample",
"Page Writes", "Value for Sample"
// Process-Stored Procedure Page I/O
// This view represents the page I/Os associated with stored procedure
// executions by SQL Server processes. It shows the login
// name, process ID and kernel process ID for each process that
// generated page I/Os during the sample interval.
// And for each process and stored procedure that generated page I/Os,
// it shows the name and ID of the database that contains the
// stored procedure, as well as the name and ID of the
// procedure itself. The view shows the total page I/Os,
// the percentage of page I/O requests that could be satisfied
// from data caches, and the number of logical page reads,
// physical page reads, and page writes for the most
// recent sample interval.
hs_create_view process_procedure_page_io,
"Login Name", "Value for Sample",
"Process ID", "Value for Sample",
"Kernel Process ID", "Value for Sample",
"Procedure Database Name", "Value for Sample",
"Procedure Database ID", "Value for Sample",
"Procedure Name", "Value for Sample",
"Procedure ID", "Value for Sample",
"Page I/O", "Value for Sample",
"Page Hit Percent", "Value for Sample",
"Logical Page Reads", "Value for Sample",
"Physical Page Reads", "Value for Sample",
"Page Writes", "Value for Sample"
// Database Object Lock Status
// This view shows the status of locks on database objects,
// which are held or being requested by SQL Server processes
// as of the end of the most recent sample interval. Each lock
// is identified by the the name and ID of the
// object being locked, the name and ID of the database that
// contains that object, and the page number to which the lock
// applies (if it is a page lock). Each SQL Server process
// associated with the lock is also identified, by its
// login name, process ID and kernel process ID.
// The type of lock is presented, together with the current
// status of the lock and an indication of whether this is a
// "demand" lock. If the lock is being requested by the process,
// the amount of time that this process has waited to acquire
// the lock, and the process ID of the process that already
// holds the lock, are shown. If instead the process already
// holds the lock, then the count of other processes waiting to
// acquire that lock is shown.
hs_create_view object_lock_status,
"Database ID", "Value for Sample",
"Database Name", "Value for Sample",
"Object ID", "Value for Sample",
"Object Name", "Value for Sample",
"Page Number", "Value for Sample",
"Login Name", "Value for Sample",
"Process ID", "Value for Sample",
"Kernel Process ID", "Value for Sample",
"Lock Type", "Value for Sample",
"Lock Status", "Value for Sample",
"Demand Lock", "Value for Sample",
"Time Waited on Lock", "Value for Sample",
"Blocking Process ID", "Value for Sample",
"Locks Being Blocked Count", "Value for Sample"
// Process Activity
// This view shows the CPU utilization, Page I/Os, and current
// process state for all processes in the SQL Server. For the
// most recent sample interval, the login name, process ID and
// kernel process ID are given for each process, together with
// its current process state. The view also presents each
// process's connect time, total page I/Os and CPU utilization
// time, accumulated since the start of the recording session.
hs_create_view process_activity,
"Login Name", "Value for Sample",
"Process ID", "Value for Sample",
"Kernel Process ID", "Value for Sample",
"Connect Time", "Value for Session",
"Page I/O", "Value for Session",
"CPU Time", "Value for Session",
"Current Process State", "Value for Sample"
// Process Detail Page I/O
// This view represents the page I/Os for each SQL Server process
// in detail. The login name, process ID, kernel process ID,
// current process state and current engine are shown for each
// SQL Server process, as of the end of the most recent sample interval.
// The view shows the percentage of page I/O requests that could be
// satisfied by the SQL Server data caches, both for the sample interval
// and since the start of the session. It also presents the number of
// logical page reads, physical page reads, and page writes accumulated
// since the start of the recording session.
hs_create_view process_detail_io,
"Login Name", "Value for Sample",
"Process ID", "Value for Sample",
"Kernel Process ID", "Value for Sample",
"Current Process State", "Value for Sample",
"Current Engine", "Value for Sample",
"Connect Time", "Value for Session",
"CPU Time", "Value for Session",
"Page Hit Percent", "Value for Sample",
"Page Hit Percent", "Value for Session",
"Logical Page Reads", "Value for Session",
"Physical Page Reads", "Value for Session",
"Page Writes", "Value for Session"
// Process Detail for Locks
// This view shows the status of locks held or being requested
// by SQL Server processes as of the end of the most recent
// sample interval. Each lock is identified by the login name,
// process ID and kernel process ID of the SQL Server process
// associated with the lock, as well as the name and ID of the
// object being locked, the name and ID of the database that
// contains that object, and the page number to which the lock
// applies (if it is a page lock). The current status of each
// lock is presented, as is an indication of whether this is
// a "demand" lock. If the lock is being requested by the
// process, the amount of time that this process has waited to
// acquire the lock, and the process ID of the process that
// already holds the lock, are shown. If instead the process
// already holds the lock, the count of other processes waiting
// to acquire that lock is shown.
hs_create_view process_detail_locks,
"Login Name", "Value for Sample",
"Process ID", "Value for Sample",
"Kernel Process ID", "Value for Sample",
"Database Name", "Value for Sample",
"Database ID", "Value for Sample",
"Object Name", "Value for Sample",
"Object ID", "Value for Sample",
"Page Number", "Value for Sample",
"Lock Status", "Value for Sample",
"Demand Lock", "Value for Sample",
"Time Waited on Lock", "Value for Sample",
"Blocking Process ID", "Value for Sample",
"Locks Being Blocked Count", "Value for Sample"
// Process Locks
// This view shows the count of lock requests for every process
// in the SQL Server that generated lock requests during the
// most recent sample interval.
hs_create_view process_lock,
"Login Name", "Value for Sample",
"Process ID", "Value for Sample",
"Kernel Process ID", "Value for Sample",
"Lock Count", "Value for Sample"
// Stored Procedure Activity
// This view shows stored procedure activity at the level of
// procedure statement. Each statement of any stored procedure
// that was executed during the most recent sample interval is
// identified by the name and ID of the database that contains
// the procedure, the name and ID of the procedure itself,
// the relative number of the statement within the
// stored procedure, and the line of the procedure's text on which
// the statement begins.
// The view includes the number of times each statement was
// executed, both during the most recent sample interval and
// since the start of the recording session. It also contains
// the average elapsed time needed to execute the statement, both
// for the sample interval and for the recording session so far.
hs_create_view procedure_activity,
"Procedure Database ID", "Value for Sample",
"Procedure Database Name", "Value for Sample",
"Procedure ID", "Value for Sample",
"Procedure Name", "Value for Sample",
"Procedure Line Number", "Value for Sample",
"Procedure Statement Number", "Value for Sample",
"Procedure Execution Count", "Value for Sample",
"Procedure Execution Count", "Value for Session",
"Procedure Elapsed Time", "Avg for Sample",
"Procedure Elapsed Time", "Avg for Session"
// Transaction Activity
// This view details the transaction activity that occurred
// in the SQL Server, both for the sample interval and the
// recording session.
hs_create_view transaction_activity,
"Transactions", "Value for Sample",
"Rows Deleted", "Value for Sample",
"Rows Inserted", "Value for Sample",
"Rows Updated", "Value for Sample",
"Rows Updated Directly", "Value for Sample",
"Transactions", "Value for Session",
"Rows Deleted", "Value for Session",
"Rows Inserted", "Value for Session",
"Rows Updated", "Value for Session",
"Rows Updated Directly", "Value for Session",
"Transactions", "Rate for Sample",
"Rows Deleted", "Rate for Sample",
"Rows Inserted", "Rate for Sample",
"Rows Updated", "Rate for Sample",
"Rows Updated Directly", "Rate for Sample",
"Transactions", "Rate for Session",
"Rows Deleted", "Rate for Session",
"Rows Inserted", "Rate for Session",
"Rows Updated", "Rate for Session",
"Rows Updated Directly", "Rate for Session"
// Engine Activity
// This view shows the level of activity for each active
// SQL Server engine during the most recent sample interval.
// For each engine, the percentage of the sample interval
// when that engine used the CPU is presented. Also shown are
// the number of logical page reads, physical page reads and
// page writes that were generated by that engine during the
// sample interval.
hs_create_view engine_activity,
"Engine Number", "Value for Sample",
"CPU Busy Percent", "Value for Sample",
"Logical Page Reads", "Value for Sample",
"Physical Page Reads", "Value for Sample",
"Page Writes", "Value for Sample"
// Data Cache Activity for Individual Caches
// This view is only available for a Release 11 SQL Server.
// It contains information about the performance of individual
// data caches.
// For each named cache configured in the SQL Server, and
// also for the default data cache, this view collects
// the cache's name and the percentage of page reads for objects
// bound to the cache that were satisfied from the cache, since
// the start of the recording session. It also presents a measure
// of the efficiency of the cache's space utilization, and the
// percentage of times when an attempt to acquire the cache's
// spinlock was forced to wait, since the start of the session.
// The actual number of cache hits and misses for the session
// are also collected.
hs_create_view data_cache_sum,
"Cache Name", "Value for Sample",
"Cache Hit Pct", "Value for Session",
"Cache Efficiency", "Value for Session",
"Cache Spinlock Contention", "Value for Session",
"Cache Hits", "Value for Session",
"Cache Misses", "Value for Session" |
Partager