I changed the service account my SQL server ran under and got this error on sharepoint after doing so.
Cannot generate SSPI context. (Microsoft SQL Server, Error: 0)
After reading a lot of blogs and KB’s I finally found the fix. Add the service account to the local administrators group on the SQL server running your config database.