Default SA password of SQL Server automatically installed by SharePoint Server 2010 setup
Here are the steps I did to fix this:
- Login to the SQL Server using a local account which has administrative privileges account (eg: .\Administrator)
- Once you have logged into Windows, open SQL Management Studio
- Connect to the SharePoint SQL instance using
Windows Authentication
- Enable Mixed Mode Authentication (this is not enabled by default for the SharePoint SQL instance)
- Set a password for the
sa
account - Enable the
sa
account - Restart the SQL instance (required due to change in authentication mode)
Enabling Mixed Mode Authentication:
- Right click on the SQL server instance
- Click on
Properties
- Click on
Security
on the left pane - Click on SQL Server and
Windows Authentication Mode
under theServer authentication
section
You can also use the following SQL query to do the same:
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', REG_DWORD, 2
[Note: 2
indicates mixed mode authentication. 1
is for windows only authentication]
Setting a password on the sa
account:
- Under the SQL instance, expand
Security
andLogins
- Right click on
sa
and click onProperties
- Type the new password in the
Password
andConfirm Password
boxes
You can also use the following SQL query to do the same:
ALTER LOGIN [sa] WITH PASSWORD='newpassword', CHECK_POLICY=OFF
[Note: CHECK_POLICY=OFF
ensures that Windows password policies of the computer on which SQL Server is running will NOT be enforced on this login]
Enabling the sa
account:
- Under the SQL instance, expand
Security
andLogins
- Right click on
sa
and click onProperties
- Click on
Status
on the left pane - Click on
Enabled
under theLogin
section
You can also use the following SQL query to do the same:
ALTER LOGIN [sa] ENABLE