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 heavy book chained to a wooden library lectern, a reader's hands resting on its closed cover.

Letting an LLM Query SQL Server Safely: A Read-Only Login and Guardrails

January 1, 2024
Pinal Dave
AI
AI, SQL Login, SQL Server, SQL Server Security, SQL View

Let an LLM query SQL Server through a restricted login, approved views, enforced row filtering, execution limits, and query auditing.

Read More
A gatehouse window with the shutter half down and a red lamp inside

SQL SERVER – Login Experience with DEFAULT_DATABASE and MUST_CHANGE

October 18, 2023
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Server Security

DEFAULT_DATABASE and MUST_CHANGE shape the login experience. Tested on SQL Server 2025: the syntax that fails, and how the two lock a user out.

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
A crowd of seagulls mobbing the hatch of a small beach kiosk while a hand pulls the shutter halfway down.

Logon Storms: Protecting SQL Server From Connection Floods

April 28, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL Connection, SQL Login, SQL Server Security, SQL Trigger

Diagnose SQL Server logon storms, control connection growth, test a limited logon trigger, and preserve administrator recovery access.

Read More
change password

SQL SERVER – Change Password at the First Login

April 19, 2021
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server, SQL Server Security

Just like many other databases and applications, SQL Server also supports the feature to change password at the first login.

Read More
A row of market shutters locked with heavy padlocks at night, one held shut only by a twist of wire.

CHECK_POLICY and CHECK_EXPIRATION for SQL Logins

November 16, 2020
Pinal Dave
SQL Tips and Tricks
DBA, SQL Login, SQL Password, SQL Server Security

Audit CHECK_POLICY and password expiration for SQL logins, inspect LOGINPROPERTY evidence, and plan safe service-account exceptions.

Read More
empty password

SQL SERVER – Creating System Admin (SA) Login With Empty Password – Bad Practice

June 26, 2020
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server, SQL Server Security

I realized that their DBAs are logging into their server with a blank or empty password. This is an extremely Bad Practice. Let us discuss it today. 

Read More
1 2 3 4 … 12 Next
  • Books
  • Testimonials
  • Privacy Policy

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