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.