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
SQL SERVER - Get Latest SQL Query for Sessions - DMV

SQL SERVER – Get Latest SQL Query for Sessions – DMV

May 5, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts

Want the latest SQL query for sessions on your server? Join sys.dm_exec_connections with sys.dm_exec_sql_text using most_recent_sql_handle.

Read More
Max worker threads window.

SQL SERVER – Find Max Worker Count using DMV – 32 Bit and 64 Bit

April 20, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL System Table

Does doubling the CPUs double the worker threads? No. Use sys.dm_os_sys_info to find Max Worker Count, and see the formula for 32 bit and 64 bit.

Read More
A late-night cloakroom still holding a few old coats

Watching the tempdb Version Store

April 13, 2010
Pinal Dave
SQL Tips and Tricks
DBA, SQL DMV, SQL TempDB, Transaction Isolation

Watch the tempdb version store with per-database space DMVs, find transactions that delay cleanup, and plan capacity from trends.

Read More
Msg 297, Level 16, State 1, Line 1.

SQL SERVER – DMV Error: FIX: Error: Msg 297, Level 16 The user does not have permission to perform this action

January 18, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts

Msg 297 appears when a user runs a DMV without the right permission. Ask your admin to GRANT VIEW SERVER STATE, and the DMV runs without errors.

Read More
A hand turning off a brass garden tap beside a potting bench, a tray of freshly watered seedlings next to the hose.

Practicing Azure SQL at Low Cost

January 16, 2010
Pinal Dave
SQL Tips and Tricks
Cloud Computing, SQL Azure, SQL DMV, SQL Training

Practicing Azure SQL can stay inexpensive with current free offers, serverless auto-pause, budget alerts, and deliberate resource cleanup.

Read More
An unattended hay wagon stands in the middle of a narrow stone bridge while a line of cyclists waits behind it.

Following a Blocking Chain to the Head Blocker

November 27, 2009
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Lock, SQL Transactions

Follow SQL Server blocking_session_id through a blocking chain, identify the head blocker, and choose a safe ending for the wait.

Read More
SQL SERVER - Recently Executed T-SQL Query

SQL SERVER – Recently Executed T-SQL Query

October 16, 2009
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Function, SQL Scripts, SQL System Table

fn_get_sql() and DBCC INPUTBUFFER will be deprecated. Use sys.dm_exec_query_stats and sys.dm_exec_sql_text to see each recently executed T-SQL query.

Read More
Previous 1 … 27 28 29 30 31 32 33 34 Next
  • Books
  • Testimonials
  • Privacy Policy

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