#sqlserver2019 #sqlserver #sqlservertutorial
There are many more similar situations in which people forgot the SA password shortly after installing the MS SQL Server. This article shows you 3 methods to help you change forgotten SA passwords for your SQL Server 2016/2017/2019/2012/2014/2022 database installation.
✅Option 1:
Change SQL Server Password in Management Studio
If you've forgotten the sa password for your SQL server, you are probably in a panic. Fear not, for you can change the password and once again have access to the powers of the SA account using Windows Authentication mode.
1.)Login into SQL Server using Windows Authentication.
2.)In Object Explorer, open the Security folder, and open Logins folder. Right-click on SA account and go to Properties.
3.)Change SA password, and confirm it. Click OK.
✅Option 2:
Change SQL Server Password Using SQL Script
1.)Open the SQL Server Management Studio.
2.)Open a New Query.
3.)Copy, paste, and execute the following:
GO
ALTER LOGIN [sa] WITH DEFAULT_DATABASE=[master]
GO
USE [master]
GO
ALTER LOGIN [sa] WITH PASSWORD=N'NewPassword' MUST_CHANGE
GO
where NewPassword is the password you wish to use for the sa account.
✅Option 3:
Change SQL Server Password with Third-Party Software:-
1.)Download SQL Server Password Changer on your local PC, install and launch it.
2.)Click the Open File button. Select the SQL Server master database file (master.mdf). Typically it is located in the folder: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data.
3.)The program will automatically decrypt the master database file and display all user accounts in your SQL Server. Select the SA account, click the Change Password button. Type a new password and click OK.
This session will help you understand the following concepts :
1.) How to create a New Login In the SQL Server
2.)How do you give a user access to an SQL Server database?
3.)How do I create a SQL database single user?
4.)What is the command to create a user in SQL?
5.)How do I grant a user in SQL?
6.)How to Delete Or Drop a Login/User From SQL Server?
✅Applicable For:-
#SQL Server 2012
#SQL Server 2014
#SQL Server 2016
#SQL Server 2017
#SQL Server 2019
#SQL Server 2022
For More Details:- tinyurl.com/yc...
Recover a lost SA password:- tinyurl.com/ey...
-------------------------------------------
👋 Additional resources
-------------------------------------------
Introduction To SQL Server [ What is Database ]:-
• Introduction To SQL Se...
What is DBMS || Database Management System [ In Hindi ]:-
• What is DBMS || Databa...
What is RDBMS ( Relational Database Management System ):-
• What is RDBMS ( Relati...
Database Recovery From MDF And LDF File Using GUI:-
• Database Recovery From...
2 Methods To Create LOGIN In SQL Server:-
• 2 Methods To Create LO...
How To Create a New Login/User In SQL Server:-
• How To Create a New Lo...
How To Delete/Drop LOGIN In SQL Server:-
• How To Delete/Drop LOG...
Reset SQL Server Login Password:-
• Reset SQL Server Login...
✅SQL Tutorial Playlist :- tinyurl.com/mr...
🔔 Subscribe to my RU-vid channel:-
www.youtube.co....
Social Media Link
--------------------------------
LinkedIn:- linkedin.com/in/deepan-kumar-patel-777591202
Facebook:- / dipan.patel.. .
---------------------------------------------------------------------------------------------------------
Thanks for watching...
"Milestone Creator"
4 окт 2024