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
Gouache painting of a picnic blanket held down by grey stones on a meadow, with a small vermilion spot at its center

LPIM Memory Model: Check It With sys.dm_os_sys_info

June 19, 2020
Pinal Dave
SQL Performance
SQL Memory, SQL Server Security, Starting SQL

The LPIM memory model tells you whether SQL Server runs with locked pages. This post reads it from sys.dm_os_sys_info in one query, confirms it with the process memory view and the error log, and explains what each value means.

Read More
Gouache painting of a row of watering cans in a greenhouse with one vermilion can tipped over in a big puddle

User Statistics Report in SSMS: Who Is Connected

June 16, 2020
Pinal Dave
SQL Tips and Tricks
SQL Reports, SQL Server Management Studio, SQL Server Security

The User Statistics report in SSMS shows the users who are connected to a database. This post opens the report, answers the same question with a query over sys.dm_exec_sessions, and finds the one application that holds many sessions.

Read More
Gouache painting of a vermilion cooking pot standing empty beside a pile of vegetable peels on a cutting board

Restore From LDF File Only: Why It Fails and What Works

June 6, 2020
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server Management Studio, SQL Server Security

A restore from LDF file only is not possible, because a log holds changes and not the database. This post answers five common questions, shows the error SQL Server gives, and restores a database from a full backup, a log backup and a tail-log backup.

Read More
Gouache painting of a row of five wooden doors in a stone wall, four grey and slate and one vermilion

HAS_DBACCESS Function: List the Databases You Can Open

May 16, 2020
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server Security

The HAS_DBACCESS function tells you whether the current login can open a database. One query over sys.databases turns it into a list, and this post tests six databases to show what each zero means: no user, offline, restricted or a busy single user slot.

Read More
Gouache painting of a row of tilted pinwheels in the sand with the still middle one vermilion

Activity Monitor Keeps Freezing: Fix WMI and Permissions

April 8, 2020
Pinal Dave
SQL Tips and Tricks
SQL Activity Monitor, SQL Monitoring, SQL Server Security, WMI

When Activity Monitor keeps freezing, the cause can be a missing SQL permission or a missing WMI permission for the Windows account. This post tests the SQL side on SQL Server 2025, walks through the WMI security fix and explains what CIMV2 means. It also gives a query that reads the same activity without Activity Monitor.

Read More
Gouache painting of a cottage with two front doors, one cream and one vermilion, and a path leading to the vermilion one

Authentication Mode Greyed Out in SSMS: Read the Real Value

March 18, 2020
Pinal Dave
SQL Tips and Tricks
Registry, SQL Scripts, SQL Server Configuration, SQL Server Security

An authentication mode greyed out in SSMS means the Security page can’t show the value it reads. This post reads the real mode with SERVERPROPERTY, with the registry value SSMS uses and with the error log. It also explains what the two valid values mean and how a bad value is repaired.

Read More
Title card: Logging On as the CNO Failed With Error 1326

SQL SERVER – LogonUserExEx Fails for User & GetToken – Logging on as the CNO Failed With Error 1326

March 17, 2020
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Error Messages, SQL Server, SQL Server Cluster, SQL Server Security

In this blog I would share my learning about fixing error LogonUserExEx fails for user & GetToken – Logging on as the CNO failed with error 1326.

Read More
Previous 1 … 4 5 6 7 8 9 10 … 56 Next
  • Books
  • Testimonials
  • Privacy Policy

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