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 torch beam lighting fine scratches around a brass keyhole on a front door at night, a key on the mat

Auditing Failed Logins With the Error Log and Extended Events

September 15, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Audit, SQL Extended Events, SQL Login, SQL Server Security

Investigate failed logins with the SQL Server error log and a focused Extended Events session, then group attempts and decide what to do.

Read More
A tall metal garden gate with a key hanging on a red tassel beside it, and a quiet courtyard of doors beyond.

Logins and Users in SQL Server: Who Gets In and What They Can Do

August 16, 2013
Pinal Dave
SQL Tips and Tricks
Database, SQL Login, SQL Scripts, SQL Server Security

Logins and users are two different things in SQL Server. A login gets a person or an application into the server, and a user gets them into one database. This post explains Windows and SQL authentication, how a login maps to a user, and how to check the mapping with a query.

Read More
Gouache painting of an orderly wooden file box beside a worn blue divider isolated in a shallow tray.

Remove a Cached Connection in SSMS: SQL in Sixty Seconds #049

April 17, 2013
Pinal Dave
SQL Video
SQL Connection, SQL in Sixty Seconds, SQL Login, SQL Server Management Studio

To remove a cached connection from the SSMS Connect dialog, delete the entry from the Server name list. The tests here show that the list lives on the client, how three entries can reach one server, and how to check where an old entry points before you delete it.

Read More
Dandelion seeds drifting over a garden wall toward neighboring lawns already dotted with dandelions.

Auditing WITH GRANT OPTION: Who Can Hand Out Permissions

April 6, 2013
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Login, SQL Server, SQL Server Security

Audit WITH GRANT OPTION at database and server scope, trace delegated permissions, and remove delegation with a reviewed CASCADE plan.

Read More
A glass-fronted emergency box with a spare key inside and a small red hammer on a chain.

Regaining sysadmin Access When Nobody Can Log In

December 29, 2012
Pinal Dave
SQL Tips and Tricks
DBA, SQL Login, SQL Server, SQL Server Security

Regaining sysadmin access starts with single-user SQL Server, a local sqlcmd connection, and a controlled Windows admin group.

Read More
A muscular security officer with a stern expression.

SQL SERVER – Importance of User Without Login

September 29, 2012
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Server, SQL Server Security

Some questions are very open ended. Here is one question I was asked in recent User Group Meeting about user without login.

Read More
Gouache painting of a visitor with an access card entering a database doorway

Guest User in msdb: Keep CONNECT and Avoid Error 916

February 24, 2012
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Login, SQL Server Security, System Database

The guest user in msdb needs CONNECT permission for features that run under logins without a user there. I reproduced error 916 in a test database on SQL Server 2025, with a query to check guest in msdb and a way to list every database where guest can connect.

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

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