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 to Z alphabet smiley faces.

How to Allow Only Alphabets in Column? – Interview Question #136

August 20, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL Function, SQL Scripts, SQL Server

Question: How to Allow Only Alphabets in Column? Answer: This was a real world scenario and I have mixed feeling about this kind of question.

Read More
A glaze vessel and preserved sampling dishes sit beside a clean dish for a new sample.

SQL SERVER – 3 Different Usage of DBCC SQLPERF

August 19, 2017
Pinal Dave
SQL Performance
SQL Lock, SQL Scripts, SQL Server, SQL Server DBCC, SQL Wait Stats

DBCC SQLPERF can report log usage or reset cumulative wait and latch statistics. I separate reporting from resetting the baseline.

Read More
Gouache painting of a detective's hat and magnifying glass beside two trunks, the swollen one with a vermilion strap

Database File Size Shrinks by Itself? Check Auto Shrink

August 15, 2017
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Data Storage, SQL Scripts, SQL Server Configuration

When a database file keeps getting smaller after you set its size, check Auto Shrink first. This post shows why a size you set later isn’t protected, then gives three checks: the database flag, jobs that shrink, and the default trace. It ends with the fix and the reason shrinking costs more than it saves.

Read More
Two separate trays of objects presented together in one tray

How to Show Results of sp_spaceused in a Single Result? – Interview Question of the Week #135

August 13, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Stored Procedure

How do you show results of sp_spaceused in a single result? My co-interviewer asked this. I think it is a poor interview question, but here is the answer.

Read More
One empty template compartment sits above its removed guides, while neighboring compartments and finished products remain intact.

SQL SERVER – How to Clear Plan Cache with Database Scoped Configuration?

August 12, 2017
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Cache, SQL Scripts, SQL Server, SQL Server Configuration

I can Clear Plan Cache for the current database through database-scoped configuration. I verify the context before considering eviction.

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
Previous 1 … 121 122 123 124 125 126 127 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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