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
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
Convert CollationID to Collation Name.

SQL SERVER – How to Convert CollationID to Collation Name?

August 7, 2017
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Scripts, SQL Server

A reader with only MDF files and no backups got a CollationID from DBCC CHECKPRIMARYFILE. Here is how to convert that CollationID to a Collation Name.

Read More
SQL SERVER - FIX: The Log for Database Cannot be Shrunk Until All Secondaries Have Moved Past the Point Where the Log was Added

SQL SERVER – FIX: The Log for Database Cannot be Shrunk Until All Secondaries Have Moved Past the Point Where the Log was Added

August 5, 2017
Pinal Dave
SQL Tips and Tricks
AlwaysOn, Shrinking Database, SQL Error Messages, SQL Replication, SQL Server, Transaction Log

Shrinking a bloated AlwaysOn log gave me: the log cannot be shrunk until All Secondaries have moved past the point where the log was added. Here is the fix.

Read More
Add node wizard checkbox.

SQL SERVER – Caution: Adding Node in AlwaysOn Availability Group

August 4, 2017
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL High Availability, SQL Server

Three clients hit the same issue after adding node at a DR site to an AlwaysOn cluster: disks on the original servers went offline. Here is what to watch for.

Read More
SQL Server Configuration Manager.

SQL SERVER – Automatic Startup Not Working for SQL Server Service

August 1, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Services, Starting SQL

After a power failure, a client’s SQL Server service stayed down even though it was set to Automatic. Here is why automatic startup can fail and what to check.

Read More
Previous 1 … 144 145 146 147 148 149 150 … 571 Next
  • Books
  • Testimonials
  • Privacy Policy

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