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 courtyard wall with three open blue-grey doors, each with a small vermilion key in its lock

Login Database Access: List the Databases a Login Can Open

November 26, 2021
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server Security

Check login database access by matching the login SID against the users of every online database. One query shows the user, the CONNECT state and the guest back door, and it needs no impersonation.

Read More
Gouache painting of a vermilion-handled tea strainer of old leaves on a saucer beside a cup of fresh tea and a grey teapot

Flush Authentication Cache: Who Can Run DBCC FLUSHAUTHCACHE

October 26, 2021
Pinal Dave
SQL Tips and Tricks
SQL Azure, SQL Cache, SQL Server DBCC, SQL Server Security

Flush authentication cache entries with DBCC FLUSHAUTHCACHE. This post tests the command on SQL Server 2025, shows who can run it and that on SQL Server 2025 it ends no open session, and says what it is documented to do on Azure SQL Database.

Read More
errorfix

SQL SERVER – Fix Error – Cannot execute as the database principal because the principal “dbo” does not exist

October 21, 2021
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Login, SQL Scripts, SQL Server, SQL Server Security

One of my clients recently sent me an email with the following error. The error was visible in the error log and was about the database principal. 

Read More
Gouache painting of a large stuck barn door with a small vermilion side door ajar

Max Server Memory Set Too Low: Fix It Through the DAC

October 15, 2021
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL Memory, SQL Server Security

Max server memory set too low can stop SQL Server from answering normal connections. This post shows how to connect through the Dedicated Administrator Connection, raise the value with sp_configure and start the service when it will not start.

Read More
Gouache painting of a repainted vermilion front door with an old key on the mat that no longer fits

distributor_admin Login: Why Renaming It Is a Bad Idea

October 14, 2021
Pinal Dave
SQL Tips and Tricks
SQL Replication, SQL Server, SQL Server Security

Do not rename the distributor_admin login on a server that uses replication. This post shows how to check whether replication uses it, and a loopback demo with a throwaway login that shows what a rename breaks.

Read More
An old cast iron mincer clamped to a farmhouse kitchen table, a bowl waiting beneath it.

CLR Integration in SQL Server: When It Still Makes Sense

October 6, 2021
Pinal Dave
SQL Tips and Tricks
CLR, SQL Server, SQL Server Configuration, SQL Server Security

Review CLR integration uses, inventory existing assemblies, preserve strict security, and compare SQL Server 2025 built-in alternatives.

Read More
Gouache painting of a vegetable bed behind a picket fence with a vermilion padlock on the gate

Deny Drop Permission for a Table in SQL Server

September 6, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Security, SQL Trigger

To deny drop permission for a table, deny ALTER on its schema, because DENY DELETE only stops row deletes. This post tests both on a demo database and shows what each deny blocks and what it leaves open.

Read More
Previous 1 2 3 4 5 6 7 … 56 Next
  • Books
  • Testimonials
  • Privacy Policy

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