Category Archives: SQL

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