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 temporary key awaits a first-use exchange beside a closed cabinet and fitting tools.

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

MUST_CHANGE requires a SQL-authenticated login to change password at its first connection. Policy options and the client workflow must support it.

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
An unlatched cabinet stands open beside its separate key and valuable stored vessels.

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

An empty password on sa is a serious security failure. I stopped an e-commerce consultation after noticing passwordless administrator sign-ins.

Read More
Gouache painting of a row of garden plots each with its own tool leaning beside it, one rake vermilion

List All Jobs With Owners in SQL Server Agent

January 30, 2020
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server Agent, SQL Server Security

To list all jobs with owners, read the job table in msdb and resolve each owner with a join that keeps jobs without a login. This post builds four demo jobs, shows how a common query hides one of them, and reassigns jobs safely. It ends with a cleanup script.

Read More
A cat with a new collar remains the same cat, beside its old collar

Can Admin Rename SA Account in SQL Server? – Interview Question of the Week #256

December 22, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Login, SQL Scripts, SQL Server, SQL Server Security

Question: Can Admin Rename SA Account in SQL Server?

Answer: Yes, of course. The syntax for to rename SA account is very simple:

Read More
An allotment plot with its gate open, older lettuce rows and a new row of seedlings inside one fence

Granting Read Access to One Schema With GRANT SELECT ON SCHEMA

November 19, 2019
Pinal Dave
SQL Tips and Tricks
Schema, SQL Login, SQL Server, SQL Server Security

Use GRANT SELECT ON SCHEMA for focused read access, test a loginless user, and check ownership chains and table-level DENY behavior.

Read More
Gouache illustration of Public role permissions, with a shared entrance key rack separate from individual locked cabinets.

SQL SERVER – Public Role Permissions and Effective Security Risk

August 28, 2019
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server, SQL Server Security

Every database user belongs to Public and cannot be removed from that role. A reader asked whether the role should be eliminated.

Read More
Previous 1 2 3 4 5 … 14 Next
  • Books
  • Testimonials
  • Privacy Policy

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