19 September 2013
If you install SQL Server using the default options, Windows authentication will be enabled and SQL Server authentication will be disabled. This post discusses how to enable SQL Server Authentication after installation and also enable the sa login.
Here are the steps to enable SQL Server authentication:
If you installed using the default options, chances are you don’t know the password to the sa login. You can use a script to enable the sa login and change the password at the same time. Just execute the following script:
ALTER LOGIN sa ENABLE;
GO
ALTER LOGIN sa WITH PASSWORD = '<enterStrongPasswordHere>';
GO
You should now be able to login with SQL Server Authentication using the sa login.