Partitioning can help with archiving in a single database. The sliding window script is a special tool.
Let me suggest setting up an admin database. It will process all settings and archiving information.
There can be two instances of SQL Server: the current server and the archive server. They will have the same structure.
The process copies data from the remote server to the archive server using the settings from the administrator DB. You may need to write Dynamic SQL. Check out Sp_MSForEachDB .
source share