Question

SQL Server Error

Cannot connect to SQL Server. An error message: SQL Server Error 18456 Can anyone advise me of a solution to this. Many Thanks


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

The error reason An attempt to login using SQL authentication failed. Server is configured for Windows authentication only. can be returned in the following situation: When the server is configured for mixed mode authentication, and an ODBC connection uses the TCP protocol, and the connection does not explicitly specify that the connection should use a trusted connection. To resolve this issue, include TRUSTED_CONNECTION = TRUE in the connection string or you can: fix sql error

Hey - Googling “Sql Server Error 18456” leads me here - https://docs.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-18456-database-engine-error?view=sql-server-2017

Sounds like it is a Logon Failed error meaning your username or password is incorrect.