Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Restoring a replicated SQL Server database in a non-replicated testing enviroment

$
0
0

Sorry in advance if this is already answered, but it's quite difficult to search exactly what I need.

We have a SQL Server 2008R2 DB in Production. Originally, the DB didn't have replication. Every time there was some problem with our software, we'd just create a backup from the production server, restore it on our testing environment, and reproduce the problem to solve it. Simple as that.

A new gov-related requirement pushed us to set up a Transactional replication on the Production DB. We modified our software accordingly, and it's now working well. Our software is able to function both with a replicated or non-replicated DB.

The problem now, is that we can't simply create a backup and restore in our environment as simple as before, every time there's a problem we need to reproduce. When we restore a backup, we can't modify any of the schema and/or functions of it, because SQL Server says the DB is tied to a non-existent replication (because it obviously copies the replication config from the Production environment).

My question is if there's anyway to create a backup of a replicated database and restore it cleanly in a non-replicated environment. Just the schema, data, and functions. 'Generate scripts' isn't possible because there's a LOT of data.

I see many questions related to how to restore the DB keeping the replication active, but I just need the clean DB for testing purposes.

Thanks!


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>