Skip to content

SQL Server Service Principal Name Formats

Scott Sutherland edited this page Jul 9, 2022 · 3 revisions

This page provides a list of the common Service Principal Name (SPN) formats associated with SQL Server.

Examples of Common SPN Formats for 2005 and prior:

Note: Many products will create both SPN records for a single instance.

  • Default / named instance: MSSQLSvc/server:1433
  • Default / named instance: MSSQLSvc/server.domain.com:1433

Examples of Common SPN Formats for 2008 and later:

Note: The TCP port isn't required. The SPN may not have a port for instances configured with Named Pipes or Shared Memory.

However, all formats are supported and may be used by vendors.

  • Default instance: MSSQLSvc/server
  • Default instance: MSSQLSvc/server.domain.com
  • Named instance: MSSQLSvc/server:InstanceName
  • Named instance: MSSQLSvc/server.domain.com:InstanceName
  • Optional format: MSSQLSvc/server:1433
  • Optional format: MSSQLSvc/server.domain.com:1433

Example of Commands to Create SPN Entries:

setspn -s MSSQLSvc/server DOMAIN\SQLServiceAccount
setspn -s MSSQLSvc/server:1433 DOMAIN\SQLServiceAccount
setspn -s MSSQLSvc/server:InstanceName DOMAIN\SQLServiceAccount
setspn -s MSSQLSvc/server.domain.com DOMAIN\SQLServiceAccount
setspn -s MSSQLSvc/server.domain.com:1433 DOMAIN\SQLServiceAccount
setspn -s MSSQLSvc/server.domain.com:InstanceName DOMAIN\SQLServiceAccount

References

Introduction

Cheat Sheets

PowerUpSQL Blogs

PowerUpSQL Talks

PowerUpSQL Videos

Function Categories

Related Projects

Recommended Content

Clone this wiki locally