This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
cpu pressure

SQL SERVER – Measure CPU Pressure – Detect CPU Pressure

August 17, 2009
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Server, SQL System Table

How to measure CPU pressure in SQL Server and tell whether your server needs a faster CPU or more CPUs, using simple scripts and signs.

Read More
SQL Server Management Studio Query Results Window.

SQL SERVER – Get Last Running Query Based on SPID

July 19, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server DBCC, SQL System Table

How to see the last running query of another session based on its SPID, using @@SPID to find session IDs and DBCC INPUTBUFFER to read the query.

Read More
SQL Server performance counters.

SQL SERVER – Performance Counters from System Views – By Kevin Mckenna

June 10, 2009
Pinal Dave
SQL Performance
SQL Scripts, SQL System Table

SQL and .NET expert Kevin Mckenna, whom I met on Twitter, shows how to read SQL Server performance counters from system views.

Read More
SQL server filegroups query.

SQL SERVER – List All Objects Created on All Filegroups in Database

June 1, 2009
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL System Table

A reader asked which object belongs to which filegroup. Here is how to list all objects created on all filegroups in a database, with a sample database.

Read More
A hand winding a glass-lidded music box, its brass pinned cylinder and steel comb visible inside

Reading System Procedures With OBJECT_DEFINITION

May 25, 2009
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Stored Procedure, SQL System Table, System Object

Use OBJECT_DEFINITION and sys.system_sql_modules to read visible SQL Server system procedure text and learn how built-in tools work.

Read More
SQL SERVER - List All the Tables for All Databases Using System Tables

SQL SERVER – List All the Tables for All Databases Using System Tables

April 26, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure, SQL System Table, Undocumented SQL

A one line script with sp_msforeachdb and sys.tables to list all the tables for all databases on a server, updated with ideas from reader comments.

Read More
93538 Same TransactionID.

SQL SERVER – Interesting Observation of DMV of Active Transactions and DMV of Current Transactions

April 11, 2009
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL System Table, SQL Transactions

sys.dm_tran_active_transactions and sys.dm_tran_current_transaction look alike, but one lists active transactions for the instance, the other only your session.

Read More
Previous 1 … 6 7 8 9 10 11 12 … 16 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com