The target principal name is incorrect. Cannot generate SSPI context.

After restarting my laptop, I was not able to connect to SQL server anymore. After online search, I found the solution that resolved the issue.

ipconfig /flushdns

Once you run this, you should be able to connect again.

Reference: http://www.power-programming.co.uk/post/2008/12/19/SQL-Network-Interfaces-The-target-principal-name-is-incorrect-Cannot-generate-SSPI-context.aspx

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">