6

SQL SERVER - Unlocking User Without Changing Password - SQL Authority with Pinal...

 3 years ago
source link: https://blog.sqlauthority.com/2021/06/09/sql-server-unlocking-user-without-changing-password/?utm_campaign=sql-server-unlocking-user-without-changing-password
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

SQL SERVER – Unlocking User Without Changing Password

While I mainly focus on SQL Server Performance Tuning during my  Comprehensive Database Performance Health Check. I often receive a question from users which are not related to performance tuning. If know the answer, I like to answer them. Today we are going to discuss Unlocking User Without Changing Password.

SQL SERVER - Unlocking User Without Changing Password ChangingPassword-800x445

A client of mine recently locked himself out of SQL Server. The user was not admin so one of the easiest options was to recreate the user. However, before we do that I suggested that they should try out the policy turning off and on and if that works they can easily unlock the user without changing the password. Let us see how we can do that.

ALTER LOGIN YourUserName WITH CHECK_POLICY = OFF;
ALTER LOGIN YourUserNameWITH CHECK_POLICY = ON;
GO

Now the script above will only work if a user is not set to change the password during the next loging. If that happens, just recreate the user.

If you liked this video, please do not forget to subscribe to my YouTube Channel – SQL in Sixty Seconds.

Here are my few recent videos and I would like to know what is your feedback about them.

Reference: Pinal Dave (http://blog.SQLAuthority.com)

Pinal Dave is an SQL Server Performance Tuning Expert and independent consultant with over 17 years of hands-on experience. He holds a Masters of Science degree and numerous database certifications.

Pinal has authored 13 SQL Server database books and 40 Pluralsight courses. To freely share his knowledge and help others build their expertise, Pinal has also written more than 5,500 database tech articles on his blog at https://blog.sqlauthority.com.

Pinal is an experienced and dedicated professional with a deep commitment to flawless customer service. If you need help with any SQL Server Performance Tuning Issues, please feel free to reach out at [email protected].

Pinal is also a CrossFit Level 1 Trainer (CF-L1) and CrossFit Level 2 Trainer (CF-L2).


Nupur Dave is a social media enthusiast and an independent consultant. She primarily focuses on the database domain, helping clients build short and long term multi-channel campaigns to drive leads for their sales pipeline.


Exclusive Newsletter

Is your SQL Server running slow and you want to speed it up without sharing server credentials? In my Comprehensive Database Performance Health Check, we can work together remotely and resolve your biggest performance troublemakers in less than 4 hours.

Once you learn my business secrets, you will fix the majority of problems in the future.


Have you ever opened any PowerPoint deck when you face SQL Server Performance Tuning emergencies? SQL Server Performance Tuning Practical Workshop is my MOST popular training with no PowerPoint presentations and 100% practical demonstrations.

Essentially I share my business secrets to optimize SQL Server performance.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK