---
title: "Connect to SQL databases"
slug: "connect-to-sql-databases"
abstract: ""
---
# Connect to SQL databases

When the installation is finished, modify the `ConnectionStrings.config` files to connect the new Sitecore XP instance to the databases from the previous Sitecore XP version that you upgraded in the previous chapter.

You must configure each [server role](https://doc.sitecore.com/xp/en/developers/104/platform-administration-and-architecture/role-scaling-and-configuration.html) and [Sitecore Identity server](https://doc.sitecore.com/xp/en/developers/105/sitecore-experience-manager/configure-a-sitecore-instance-and-sitecore-identity-server.html) appropriately.

**Complete databases cleanup**

If you have a list of modified items in the UpdateApp logs (as described in [this section](https://doc.sitecore.com/xp/en/developers/105/guides/upgrade-guide-for-sitecore-experience-platform-1050/clean-up-the-content-databases.html)), you can now review and remove them from the databases, and re-apply the modifications that you still need.

After cleanup, Sitecore will function using default items from resource files, only further item modifications will be stored in databases.