How to connect SQL Server instance in case of SSPI context error?


In case of SPN (Service Principle Name) registration failed and you are getting the SSPI context error while connecting to SQL Server instanc you can use the Named Pipes protocol if enabled. To connect SQL Server instance using named pipes protocol you have to write NP against the instance name.

See below image for more information.

Advertisements

One thought on “How to connect SQL Server instance in case of SSPI context error?

  1. Anil

    Hi Jugal,

    Thank you for sharing your great work !!

    There was SPN issue on my test server but i wanted to check how NP works. I disable NP on server and then tried to connect using SSMS as told by you, to my surprise I got connected to SQL instance.

    Can you please shed light on this ? Per setting on my server, NP is tried in the end so i was thinking it shouldn’t connect.

    Thanks,
    Anil

    Reply

Thanks for the comment, will get back to you soon... Jugal Shah

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s