Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fixing SQL Server Error 15404: Could Not Obtain WINNT Info

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step Fixes
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Error 15404 in SQL Server—*"Could not obtain information about Windows NT"*—is a common but frustrating issue that prevents Windows tools (like SQL Server Management Studio) from accessing domain/group permissions. This happens when SQL Server fails to validate the Windows NT security context required for features like extended stored procedures, linked servers, or certain security operations. The fix usually involves restoring proper domain trust, repairing Windows permissions, or correcting SQL Server's security settings. Here’s how to resolve it step by step, with no unnecessary steps or guesswork.

What You'll Need

  • A Windows machine running SQL Server (Windows Server 2016+ or Windows 10/11 Pro/Enterprise).
  • Administrator privileges—typically via a domain account or local admin.
  • SQL Server Management Studio (SSMS) or the `sqlcmd` utility, depending on your approach.
  • If you manage multiple servers, access to a domain controller or network admin support.
  • An elevated command prompt or PowerShell (right-click > Run as administrator).

Step-by-Step Fixes

  1. Verify SQL Server is running with the correct permissions.
    1. Open SQL Server Configuration Manager: sqlservr.exe (for native mode) or sqlservr.exe -m (for mixed mode).
    2. Check the Log On As setting under the SQL Server Network Configuration tab. It must point to your domain account (e.g., DOMAIN\YourAdminUser) or a local admin account. If blank, click Browse and select the account.
    3. Restart SQL Server services (right-click > Restart).
    If that did not work: Proceed to the next step.
  2. Repair Windows NT security context for SQL Server.
    1. Open an elevated command prompt and run: sqlcmd -S YourSQLServerName -E -Q "EXEC sp_configure 'show advanced options', 1; RECONFIGURE; EXEC sp_configure 'remote query enabled', 1; RECONFIGURE" (Replace YourSQLServerName with your instance name.)
    2. If error 15404 persists after this, disable Windows authentication temporarily (if using mixed mode) and enable SQL Server authentication:
      1. Open SQL Server Management Studio > Right-click the instance > Properties.
      2. Under Security, select SQL Server and Windows Authentication mode (if not already set).
      3. Restart SQL Server services.
    3. If you’re in a domain environment:
      1. Log in as a domain admin via RDP and open Local Users and Groups (run lusrmgr.msc).
      2. Ensure SQL Server Service Account has Member Of permissions for the Domain Admins group or equivalent (e.g., Enterprise Admins).
      3. If missing, add the account to the group via New on the Groups tab.
    If this fails: Domain-specific fixes (see next steps).
  3. Check domain trust and Kerberos delegation.
    1. If you’re using a domain account and SQL Server is on a workstation:
      1. Run dsregcmd /status in an elevated command prompt. If Kerberos delegation is missing, run: dsregcmd /setdelegationtype f to enable full delegation (requires domain admin rights).
    2. If the issue persists after delegation, verify Windows allows SQL Server to interact with Active Directory:
      1. Open Group Policy Management (gpmc.msc).
      2. Navigate to: Computer Configuration > Windows Settings > Security Settings > Restricted Groups
      3. Ensure SQL Server (or SQL Server Agent) is listed as a restricted group. If not, add it manually.
    If you’re not in a domain: Skip delegation checks and proceed to the next step.
  4. Reinstall SQL Server or repair its installation.
    1. Backup your database(s) if they’re critical. Uninstall SQL Server via: Add/Remove Programs > Microsoft SQL Server > Uninstall.
    2. Delete the SQL Server folder from: C:\Program Files\Microsoft SQL Server or C:\Program Files (x86)\Microsoft SQL Server
    3. Reinstall SQL Server from the original media, selecting Full installation (or the minimal features needed).
    Warning: This deletes all databases and settings unless you restore from a backup.
  5. Check for conflicting security updates or Windows permissions.
    1. Run sc qc sqlservr to confirm SQL Server service is running. If it’s stopped, start it manually via sc start sqlservr.
    2. Check the Event Viewer for SQL Server or Windows logs (path: Event Viewer > Windows Logs > Application). Look for errors around the time the issue occurred.
    3. If SQL Server services are missing entirely, reinstall them via: Add/Remove Windows Features > SQL Server Runtime.

Common Mistakes

  • Using a non-domain admin account for the SQL Server service. The account must be a domain admin or have explicit permissions in Active Directory. Verify by running net user SQLAdmin and checking membership in Domain Admins.
  • Disabling Kerberos or SPN (Service Principal Name) registration for the SQL Server account. This breaks domain authentication. Use setspn -S MSSQLSvc\YourServerName:1433 YourDomain\SQLAdmin to register the SPN.
  • Ignoring Windows permission errors when adding the SQL Server service account to groups. Some AD groups may require explicit "Allow" permissions in the Groups tab of the Local Security Policy.
  • Not restarting SQL Server after changes to the service account or security settings. Always restart the services after modifying these settings.

Tips

  • If you’re unsure which domain groups the SQL Server account belongs to, run: dsquery group -memberof DOMAIN\SQLAdmin to list all groups.
  • Use PowerShell to verify the service account’s permissions: Get-WindowsFeature SQLServer -All > Shows installed features. Get-Service sqlservr > Checks service status.
  • If you’re in a hybrid environment (cloud + on-prem), ensure SQL Server for Azure Arc is properly configured to trust Active Directory.
  • For SQL Server 2017 or earlier, the sp_configure steps may require elevated privileges. Run them in PowerShell as Admin.
  • Test permissions after fixes by attempting to create a linked server in SSMS:
    1. Right-click > Tasks > New Linked Server.
    2. Select SQL Server as the provider.
    3. Enter the remote server name and check Use Windows Authentication.
    If this works, the issue is resolved.

Troubleshooting

  1. Error persists after all steps:
    1. Check for conflicting antivirus software (temporarily disable it to test).
    2. Run netsh winsock reset and netsh int ip reset to repair network stack settings.
    3. Contact your network administrator to verify:
      • SQL Server is allowed to communicate with Active Directory.
      • No firewalls block port 1433 or 445 (SMB).
  2. SQL Server 2019/2022 with error 15404:
    1. Ensure the SQL Server service account has Log on as a service permission in the Local Security Policy:
      1. Open Local Security Policy > Local Policies > User Rights Assignment.
      2. Find Log on as a service and add the SQL Server account.
  3. Workstation running SQL Server:
    1. Add the SQL Server account to the Remote Desktop Users group (for RDP access) or Administrators group.
    2. If using a remote SQL Server, ensure the domain account has Read permissions on the SQL Server’s NTFS folders (e.g., C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\Data).

Frequently Asked Questions

Why does SQL Server need Windows NT permissions?

SQL Server relies on Windows’ built-in security model to validate domain/group memberships, file system access, and network communications. Error 15404 occurs when SQL cannot verify the Windows NT identity (e.g., user/group) of the service account, often due to missing permissions, misconfigured delegation, or domain trust issues.

Can I fix this without a domain admin?

If you’re on a standalone workstation (not part of a domain), you can: 1. Use a local admin account for the SQL Server service. 2. Ensure the account is in the Administrators group. 3. Disable domain authentication temporarily (switch to SQL Server authentication).

What if SQL Server is installed but not running?

Start the SQL Server service via: sc start sqlservr (Replace sqlservr with your instance name if different.) If it fails, check the Event Viewer for startup errors.

How do I know if Kerberos delegation is working?

Test delegation by running: klist tickets (Look for your domain account’s tickets. If none appear, delegation is broken.)

Does this error affect SQL Server Express?

Yes. SQL Server Express (no matter the edition) requires the same permissions as full editions. If you’re using a non-domain account, switch to SQL Server authentication or ensure the account has proper domain permissions.

What if I’m using Azure SQL Database?

Error 15404 in Azure SQL usually means:

  • The server’s firewall is blocking Windows authentication (port 1433).
  • The Windows identity being used is invalid or expired.
Fixes:
  1. Enable Windows authentication in Azure portal > SQL instance > Security.
  2. Use the Azure AD admin account (not a local Windows account).