Share via

How to clone database in SQL 2022?

Oleg Cherkasenko 0 Reputation points
2025-04-09T07:49:15.6133333+00:00

My customer has SQL 2022 (16.0.1000.6) and a production database.

To investigate performance of the database I need the db backup.

But customer cannot provide it because of some tables contain sensitive data.

I have tried to clone the db because it has Query Store data and it may be enough for now.

DBCC CLONEDATABASE: I am trying to clone database to get the clone for analysis.  But received the error 2601, 14, Status 1 Cannot insert duplicate key row in object 'sys.sysrowsets' with unique index 'clust'. The duplicate key value is (72057594045530112).

What is the reason? How to fix it and create the database clone?

SQL Server Database Engine

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.