How to reset a lost SA password on SQL Server

Suppose youve had SQL Server installed for a while and forgotten your SA password. Even long-time users can encounter this situation. This article from TipsMake will guide you on how to reset a lost SA password on SQL Server, including SQL Server 2014, 2012, and 2008.

SQL Server stores passwords as hashes in the master.mdf file. While resetting passwords on Windows 10 is relatively easy, it's different with SQL Server. If you have SQL Server Password Changer, you can easily reset a lost SA password. However, you cannot access the master.mdf file while SQL Server is running. Therefore, the first thing you need to do is stop the SQL Server service before resetting a lost SA password on SQL Server.

How to reset a lost SA password on SQL Server

Step 1: Stop the SQL Server service

On the Start Menu , click All Programs => Microsoft SQL Server => Configuration Tools and then click SQL Server Configuration Manager .

In the SQL Server Configuration Manager window, expand Services , and then click SQL Server.

Click OK . A red box on the icon next to the server name and on the toolbar indicates that the server has been successfully stopped.

Step 2: Reset SA password

Download and install the SQL Server Password Changer program .

After the installation is complete, open the program. Click the Open File button.

The program will prompt you to select the master.mdf file for SQL Server. By default, the master.mdf file is located in the C:Program FilesMicrosoft SQL ServerMSSQLData folder . If you don't know the folder location, you can type the master.mdf filename into the Windows Explorer search box and search through the system partitions.

After selecting the master.mdf file, the program will decrypt the file and display a list of database user accounts. Select your SA account and click the Change Password button. Set a new password and click OK to successfully reset your lost SA password on SQL Server.

The above is how to reset a lost SA password on SQL Server. After obtaining a new password, the next step is to access SQL Server Configuration Manager, open the SQL Server service again, and log in to the SA account using the new password.


To better understand SQL Server, readers can refer to the article " Comparing Oracle and SQL Server," which will provide a lot of useful knowledge.

Other SQL articles
  • Installing Microsoft SQL Server on Ubuntu

    có thể bạn chưa biết nhưng microsoft cũng khá ưu ái cộng đồng mã nguồn mở. bằng chứng là một số phần mềm của microsoft có sẵn trên linux, bao gồm .net và sql. dưới đây tipsmake sẽ hướng dẫn bạn cách cài đặt microsoft sql server trên ubuntu.
  • The LIKE and IN comparison operators in SQL

    các bài viết trước đây tipsmake đã giới thiệu cho bạn về các lệnh, mệnh đề phổ biến trong sql. bài viết hôm nay tipsmake sẽ giới thiệu tiếp cho bạn các toán tử so sánh like, in trong sql
  • The CREATE command in SQL

    sql là viết tắt của structured query language, là ngôn ngữ lập trình được sử dụng để liên lạc và vận dụng cơ sở dữ liệu, trong bài viết dưới đây tipsmake sẽ giới thiệu lệnh create trong sql giúp bạn nắm rõ cú pháp cũng như cách sử dụng.
  • GRANT, REVOKE in SQL

    các lệnh dcl trong sql được sử dụng để thực thi bảo mật cơ sở dữ liệu trong môi trường cơ sở dữ liệu người dùng. lệnh grant, revoke trong sql là 2 kiểu lệnh dcl. Để tìm hiểu rõ hơn về lệnh dcl cũng như lệnh grant, revoke trong sql, bạn đọc cùng tham khảo bài viết dưới đây của tipsmake.
  • The JOINS command in SQL

    thông thường, lệnh joins trong sql được sử dụng để kết nối các thông tin trong các bảng khác nhau, điều kiện joins là một phần trong truy vấn sql để truy xuất các hàng từ 2 bảng trở lên.
  • How to deploy SQL Server via PowerShell DSC

    hôm nay, tipsmake sẽ hướng dẫn các bạn cách triển khai sql server thông qua powershell dsc giúp bạn có thể sử dụng tính năng powershell mới quan lý cơ sở hạ tầng trong cơ sở, trên dịch vụ đám mây hiệu quả, dễ dàng.
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup