Getting SharePoint Config Database Connection String

Had an issue at a client SharePoint environment where all SharePoint sites stopped working one day, with the error Cannot connect to the configuration database.

Server architecture documentation was a few years old, and didn’t have the current SQL server name. Can’t get it through Central Administration or psconfig either because they can’t open when they can’t connect to the Config DB.

So how do you find the connection string that SharePoint uses to connect to the Config DB?

It’s in the registry 🙂

Continue reading