Reputation: 5442
My Windows account has administrator rights on a local SQL Instance. I am able to change the password to SA
user but when I try to login using SA
with SQL Server authentication mode it gives me error. I am trying to access a local database.
Can somebody please help me to set the password and login to the local SQL using SQL authentication mode?
Upvotes: 1
Views: 7211
Reputation: 2677
To set the sa password
In Object Explorer, connect to an instance of Database Engine.
On the Standard bar, click New Query.
Copy and paste the following example into the query window and click Execute. The following example enables the sa login and sets a new password.
ALTER LOGIN sa WITH PASSWORD = '<enterStrongPasswordHere>' ;
GO
check this link
Upvotes: 3