Skip navigation

JSI Tip 10025. Setspn fails in SQL 2000 if your domain name differs from the NetBIOS name where the SQL Server SPN is registered?

When you attempt to register the SPN (Service Principal Name) using the Setspn utility, you will receive an error if the NetBIOS name of the computer where SQL Server 2000 is running is different from the domain name if the NetBIOS name of the computer where SQL Server 2000 is running is different from the domain name, when using the following syntax:

setspn -A MSSQLSvc/Host:port serviceaccount

The error will look similar to:

setspn -A MSSQLSvc/JSI007.JSIINC.com:1433 SQLAccount

Registering ServicePrincipalNames for (null)

        MSSQLSvc/JSI007.JSIINC.com:1433

Failed to assign SPN to account '(null)', 0x57
To workaround this behavior, use the following syntax:
setspn -A MSSQLSvc/Host:port domainname/serviceaccount

like:

setspn -A MSSQLSvc/JSI007.JSIINC.COM:1433 JSIINC/SQLAccount

Where:

JSI007      is the host name of the SQL Server.

JSIINC      is the Windows domain name.

SQLAccount  is the SQL Server domain account under which SQL Server service is running.
NOTE: The NetBIOS computer name of the SQL Server where the SPN is being registered is NOT JSIINC.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish