Core component of SQL Server for storing, processing, and securing data
Hi@matteu31 ,
Short answer: this is expected behavior for Windows Authentication in a workgroup when you connect by FQDN, and yes it can be worked around.
Why it happens: connecting by "localhost" or "hostname" uses NTLM, which works locally in a workgroup. When you connect by "hostname.domain.com", the client instead tries to get a Kerberos ticket for that name. Kerberos needs a domain controller and a registered SPN, and your server is in a workgroup with neither, so authentication can't validate your Windows principal, and you get 18452 (untrusted domain / unrecognized principal). Error 18452 specifically means the login uses Windows Authentication, but Windows can't verify the account, which is exactly the workgroup case.
Ways to solve it:
Use SQL Server Authentication for the FQDN connection. Enable Mixed Mode on the server, create a SQL login, and connect with that instead of Windows auth. This is the clean fix in a workgroup and removes the Kerberos dependency entirely.
Keep using Windows auth by connecting with the hostname or IP instead of the FQDN, so it stays on NTLM. For remote machines, this requires the same username and password to exist as a local account on both the client and the server (workgroup NTLM pass-through).
So it's not a bug. Windows auth over an FQDN relies on domain infrastructure that doesn't exist in a workgroup. Use SQL auth for FQDN, or stick to hostname/IP with a mirrored local account for Windows auth.