Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change sa password in SQL Server 2008 express?

I have installed SQL Server 2008 express and logging in through windows authentication, it doesn't allow me to do anything. How do i change 'sa' password or gain full privilege in my local computers 2008 express ? I am using windows 7.

like image 349
ktm Avatar asked Sep 23 '10 18:09

ktm


People also ask

How can I change SA password in SQL Server Express?

Log in as the SA user using SQL Server authentication and the current password. In the Object Explorer, expand Security and then Logins. Double click the SA login. Enter the desired password and confirm it.

How do I reset SQL SA password?

Open SQL Server configuration manager and select the service of SQL Server instance. Right-click and click on the Properties option. After adding the startup parameter, click on the Apply button and then the OK button in the warning message window. Restart the SQL Server service to start SQL Server in single user mode.

What is the default sa password for SQL Server Express?

FYI, there is no "default" password for SQL Server's sa account. It gets setup during installation, by you. If you didn't specify mixed mode authentication, then SQL Server is running in Windows Authentication mode, which means you cannot login using sa and a password.


1 Answers

If you want to change your 'sa' password with SQL Server Management Studio, here are the steps:

  1. Login using Windows Authentication and ".\SQLExpress" as Server Name
  2. Change server authentication mode - Right click on root, choose Properties, from Security tab select "SQL Server and Windows Authentication mode", click OK Change server authentication mode

  3. Set sa password - Navigate to Security > Logins > sa, right click on it, choose Properties, from General tab set the Password (don't close the window) Set sa password

  4. Grant permission - Go to Status tab, make sure the Grant and Enabled radiobuttons are chosen, click OK Grant permission

  5. Restart SQLEXPRESS service from your local services (Window+R > services.msc)

like image 193
Ani Avatar answered Sep 29 '22 09:09

Ani