196k views
2 votes
How to set sa password in sql server after installation

User StackUP
by
8.0k points

1 Answer

7 votes

Final answer:

To set the sa password in SQL Server after installation, open SQL Server Management Studio (SSMS), create a new login named 'sa' with a strong password, assign server roles to the 'sa' login, and save the changes.

Step-by-step explanation:

To set the sa password in SQL Server after installation, you can use the SQL Server Management Studio (SSMS) program. Follow these steps:

  1. Open SSMS and connect to your SQL Server instance.
  2. In the Object Explorer, expand the 'Security' folder and right-click on the 'Logins' folder. Select 'New Login'.
  3. In the 'Login - New' window, enter 'sa' as the login name. Choose a strong and secure password for the sa account under 'Password'.
  4. Under 'Server Roles', select the server roles you want to assign to the 'sa' login. You can grant it 'sysadmin' role to have full administrative privileges.
  5. Click on 'OK' to save the changes. The sa account will now have the new password and assigned server roles.

Remember to choose a strong password that meets the SQL Server password policy requirements.

User Bgschiller
by
8.3k points