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
A flax brake handling coarse fiber while finer strands extend beyond its working reach

Deprecated System Tables: Replacing sysobjects and sysindexes

November 9, 2018
Pinal Dave
SQL Performance
SQL Deprecated Feature, SQL System Table, System Database, System Object

Old catalog views still answer, but their page counts can be far too small. A short demo shows the gap and how to replace them.

Read More
A still weaving loom continues to hold unfinished fabric under tension

How to Kill Processes Idle for X Hours? – Interview Question of the Week #152

December 17, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Connection, SQL Cursor, SQL Scripts, SQL Server, System Object

Interview question: how to kill processes idle for X hours in SQL Server? Here is a script that finds idle sessions and kills them.

Read More
Gouache painting of a wide slate blue bowl holding a cream bowl and several tiny cups, one cup vermilion

SPID, KPID and ECID in sys.sysprocesses: What They Mean

August 11, 2017
Pinal Dave
SQL Tips and Tricks
Parallel, SQL DMV, SQL Scripts, System Object

SPID, KPID and ECID are the three ID columns of sys.sysprocesses: the session, the Windows thread and the part of a parallel query. This post reads them for an idle session and for a query running in parallel, explains why KPID can be negative, and names the DMVs that give the same answers today.

Read More
SELECT statement for object_id.

SQL SERVER – How to Build Three Part Name from Object_ID – Part 2?

August 8, 2017
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, System Object

Rin Sitah replied to my interview question with a neat alternative way to build three part name from Object_ID using sys.objects and sys.schemas.

Read More
A brass object sits in a smaller case inside a selected large chest

How to Build Three Part Name from Object_ID? – Interview Question of the Week #134

August 6, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Scripts, SQL Server, System Object

If you only have an object_id, can you get the database, schema and object name? Here is a simple script that builds the Three Part Name from Object_ID.

Read More
SQL Server sysmail_configuration table.

SQL SERVER – sp_readrequest – Long Running Process

March 20, 2017
Pinal Dave
SQL Performance
Database Mail, SQL Scripts, SQL Server, System Object

sp_readrequest kept showing up as a long running procedure. It is Database Mail waiting on its queue with a 600 second timeout, usually nothing to worry about.

Read More
A central architectural layout guides a wooden building model on a workbench

What is a Master Database in SQL Server? – Interview Question of the Week #076

June 19, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Backup and Restore, SQL Server, System Object

A reader told me he had dropped his master database. So here is the basic question: what is a master database in SQL Server, and why does it matter?

Read More
Previous 1 2 3 Next
  • Books
  • Testimonials
  • Privacy Policy

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