Unable to login with SQL Server authentication - sql-server

With Windows authentication, I am able to connect to SQL Server. Then I change password for sa, then I try to connect with SQL Server authentication, but I get an error
Login failed for user sa.
Thanks

Assuming you are entering the correct password and it still does not work, you need to enable SQL Server Authentication.

Related

Error connecting to SQL Server with Windows Authentication

I want to connect to SQL Server with Windows authentication and create a SQL Server user.
The error I get while doing this is:
Login failed for user 'PCNAME\UserName'. Reason: The account is disabled. (Microsoft SQL Server, Error: 18470)
I also get the following error when I try to connect with PsTools:
Unable to connect: Login failed for user 'NT AUTHORITY\SYSTEM'.
Reason: The account is disabled.
What kind of process should I provide to activate the NT AUTHORITY\SYSTEM user? Or how can I act?
Thank you in advance for your help.
Well, you are trying to connect while logged on as pcname\username. If this user is not created as a Windows user in SQL Server or is disabled in SQL Server, then you will not be able to connect. What you need to do is use an authorized account to created the windows authenticated user in pcname\username in SQL Server then you will be able to connect.
As for pcname\SYSTEM, this is a built in SID that is used by services. There is no reason you could not add this as a Windows authenticated user in SQL Server.

Getting SQL login failed error (18456) when connecting to Azure SQL

I am trying to connect to an Azure SQL database using SSMS. I know the credentials are correct but I keep getting the error message
Login failed for user xxxxxx
I am using SQL Server authentication and I have already added my client IP address to the server in Azure.
The error is an SQL server error, so your login request is reaching the database. It is therefore not a network problem.
There is therefore something wrong with the user account or related configuration. Things it could be:
SQL Server account authentication is not turned on (Only AD authentication by default)
The user is configured with a default database, that he does not have access to

Active Directory Password Authentication with Toad for SQL Server

Is it possible to authenticate using Active Directory Password Authentication in Toad for SQL Server 6.8?
In Microsoft SQL Server Management Studio there's an option for this, but in Toad for SQL Server there's only "Windows Authentication" and "SQL Server Authentication".
My Login name is my email address, e.g., last.first#domain.com.
When I log in with SQL Server Authentication in Toad, it fails with the error message
"Cannot open server "domain.com" requested by the login. The login
failed."
Windows Authentication uses the credentials that you are currently logged in with to authenticate.
The SQL server will need to use Windows Authentication and your AD user name will need to be given access.
I was told in the Toad World forums that Toad for SQL Server 6.8 doesn't support Active Directory Password Authentication.

Unable to connect to SQL Server through SSMS

I changed the SQL service account from NT Service\MSSQLSERVER to an AD service account. SQL server service account has administrator access in server.
But now I am unable to connect to the SQL server. Got the following message
You need to check the security event logs. If you are using Kerberos then check the logon attempt with Kerberos authentication package.

SQL Server Windows Authentication

I'm trying to connect to a remote SQL Server Express machine using Windows authentication.
I´m logged on with a user with username Administrator, but when logging in, I get the error message:
Login failed for user guest ...
Why is not using the Administrator account?
Thanks in advance.
For Windows Authentication to work, the target machine has to be on a domain where your Windows credentials will be recognized. If the server is outside of your organization's control, it will not recognize your credentials and you will have to use a Sql Server user ID and password to log in.
SQL Server Express by default only allows local connections - you can enable it, but you have to explicitly do so.
See these:
SQL Server Express team blog: how to enable Express to accept remote connections.
How to enable Remote Connection on SQL Server 2008 Express

Resources