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 large antique master key lying across a ring that holds a dozen smaller identical keys, with one vermilion tag tied to the ring.

Master Database in SQL Server: What It Holds and How to Protect It

April 11, 2016
Pinal Dave
SQL Tips and Tricks
Linked Server, SQL Backup and Restore, SQL Login, SQL Server Architecture, System Database

The master database is the one database a SQL Server instance cannot start without. It stores logins, linked servers, server settings and the list of databases. The tests here show what master holds, what it does not, how to back it up with CHECKSUM, how to check the backup, and what a master restore involves.

Read More
A sealed envelope, brass lock and two different key impressions suggest preserved evidence of a change

SQL SERVER – Who Changed the Password of SQL Login? – Interview Question of the Week #065

April 3, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Login, SQL Password, SQL Scripts, SQL Server, SQL Server Security

Who changed the password of your SQL Login? It is a real world question every DBA faces one day. Bookmark this post, here is how to find the answer.

Read More
SQL SERVER – FIX Error 18456, Severity: 14, State: 58. Login failed for user

SQL SERVER – FIX Error 18456, Severity: 14, State: 58. Login failed for user

February 13, 2016
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, SQL Login, SQL Server

Login failed for user with state 58? Newer SQL Server versions give better details in the ERRORLOG. Here is how to FIX Error 18456 when you see this state.

Read More
SQL SERVER - Unable to drop login - Msg 15170, Level 16, State 1

SQL SERVER – Unable to drop login – Msg 15170, Level 16, State 1

December 23, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Login, SQL Scripts, SQL Server

Cleaning up my demo server, I could not drop login danny because of Msg 15170: the login owns a job. Here is how to find what a login owns and remove it.

Read More
A turnstile in a dim marble lobby with a chain looped through its arms, one red bulb burning above it.

SQL SERVER – Login failed for user . Reason: Token-based server access validation failed

August 19, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Login, SQL Scripts, SQL Server

Login failed for user. Reason: Token-based server access validation failed. Here is how the state of error 18456 in the ERRORLOG shows the cause and fix.

Read More
Gouache painting: one brass key hanging on a post beside a long row of identical wooden garden gates in a stone wall, every gate ajar, a small vermilion ribbon tied to the key

Add a User Across Databases: A Tested Script With Cleanup

March 9, 2015
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, SQL Login, SQL Scripts, SQL Server Security

To add a user across databases you need one login and, in every chosen database, a user and a role. This post gives a tested script that does it, checks it and removes it again on SQL Server 2025. It also answers the model database question and shows the server-level shortcut.

Read More
A bowl of identical red keys by a front door, a guest's hand taking one

Linked Server Logins: Stop Mapping Everyone to sa

November 3, 2014
Pinal Dave
SQL Tips and Tricks
Linked Server, SQL Login, SQL Server, SQL Server Security

Audit linked server logins for blanket remote sysadmin mappings, test with a low-privilege identity, and replace broad access safely.

Read More
Previous 1 … 6 7 8 9 10 11 12 … 14 Next
  • Books
  • Testimonials
  • Privacy Policy

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