---
title: Separating the contact management database on MVC sites
related:
  - https://docs.kentico.com/k10/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/separating-the-contact-management-database.md
  - https://docs.kentico.com/k10/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/separating-the-contact-management-database/rejoining-the-contact-management-database.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

When using contact management on high‑traffic websites, the system needs to store a very large volume of data in order to keep records of all contacts, their activities and other related information. Kentico allows you to to move all [tables and database objects](https://docs.kentico.com/k10/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/separating-the-contact-management-database.md#tables-affected-by-contact-management-database-separation) associated with contact management to a separate database (including the currently stored data). Doing so allows easier management of the application's main database, without the need to deal with the contact data.

There can only be one separated contact management database for the entire system, even when hosting multiple websites. It is not possible to create a different database for each site.

If you wish to separate the contact management database, follow the steps listed in the [Running the database separation](https://docs.kentico.com/k10/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/separating-the-contact-management-database.md#running-the-database-separation) section.

> **Warning:** **Warning**
>
> - It is strongly recommended to back up your database before starting the separation.
> - The database will be unavailable while the separation is being carried out, so you should run the process at a time when no visitors or editors are accessing the websites in the system.
> - You cannot perform database separation if you use Integrated Windows authentication on your SQL Server.

Please note the difference for separating the database on MVC projects:

> **Note:** **Separating database on MVC projects**
>
> When the process of separating the database is completed, you need to add an additional connection string for the new contact management database to your MVC project's _web.config_ file: .

After having separated the contact management database, all functionality of the website and administration interface remains the same as before the separation.

## Rejoining the contact management database on MVC sites

If you wish to reverse the process and return everything back to a single database, follow the instructions in [Rejoining the contact management database](https://docs.kentico.com/k10/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/separating-the-contact-management-database/rejoining-the-contact-management-database.md). Please note the difference for rejoining the database on MVC projects:

> **Note:** **Rejoining database on MVC projects**
>
> When the process of rejoining the database is completed, you need to delete the additional connection string for the separated contact management database from your MVC project's _web.config_ file: .
