These pages cover SQL Clone 1, which is not the latest version. Help for other versions is also available.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Do clones have the same data as the source?

All clones created will have the same data as when the image was taken from the source - it’s a 2-stage process. A data image is taken from the live source or a backup (this takes about the same time as a backup). Multiple clones can then be created, each using the image (which can be on a file share) and a local differencing disk.

Can a clone be used like a real database?

Yes, the clone is a real database in every sense - it just has most of the mdf and ldf files stored on a network share (i.e where the snapshot is). Obviously this means the network link's stability and latency will affect the database's performance.

How do I check no one in the team is using a clone before I delete it?

This isn't currently supported within the system, the Activity Monitor in SSMS (or running `sp_who2`) can tell you about current usage of a database.

How do I check no one in the team is using an image before I delete it?

Currently, data images can only be deleted when it has no clones created from it. In fact, you will only be able to see the delete icon for a data image on Web client if this is the case.

Can I identify which databases are clones (so I don't back them up for example)?

When SQL Clone creates a clone database, it adds an Extended Property to the database object named as "IsSQLCloneDatabase" with the value "1". You can take advantage of this mark to find all clone databases under a SQL Server instance, for example with the below query:

Selecting clone databases
CREATE TABLE #TempCloneDatabases (DatabaseName VARCHAR(MAX));

INSERT INTO #TempCloneDatabases EXEC sp_MSForEachDB 'Use [?];
SELECT db.name AS DatabaseName
FROM sys.extended_properties AS prop
JOIN sys.databases AS db ON db.name = DB_NAME()
WHERE prop.[class_desc] = "DATABASE" AND prop.name = "IsSQLCloneDatabase" AND prop.value = 1';

SELECT DISTINCT * FROM #TempCloneDatabases ORDER BY DatabaseName;
DROP TABLE #TempCloneDatabases;

Will open transactions that are not committed be part of the image file?

Open transactions will not be applied, the clone will have the uncommitted state.

Can images be made from log shipped databases in standby or read-only mode?

The image creation process involves copying .mdf and .ldf files, so it shouldn't pose any problems. Also the image would be in the same state as the database it was created from.

How can I change the default storage location of the clones?

By default, clones are stored under the local app data folder of the account which the SQL Clone Agent service is running under (precisely "%localappdata%\Red Gate\SQl Clone\clones"). You can override the default clones storage folder during agent installation.

Does the cloning process pick up replication topology?

We expect this to be problematic, but we haven’t tested this yet.

Is it possible to use SQL Clone from the command line?

need to put some words in here and point to Aarons documentation

Is there a plan for SQL Clone to support password protection when working with SQL Backups?

It's currently a little way down our backlog - the more it's requested, the sooner it will happen.

Do all my SQL Server versions have to be the same to use SQL Clone?

SQL Clone maintains the compatibility level of a database being imaged (from a backup or live database), so providing the SQL Server instance supports that version the image / clone should work. For a more detailed article on the subject see here.

Can an image from SQL Server 2016 be cloned onto an older server version?

We don’t have any near-term plans to provide database downgrade functionality within this product.

It should be possible to achieve this in a script combining our SQL Compare command line, BCP and the Powershell scripting in SQL Clone.

Is there a version with a 32bit C++ redistributable available?

No, the 'instant' technology SQL Clone uses is 64-bit only.

Can I create an image from a clone?

It's currently a little way down our backlog - the more it's requested, the sooner it will happen.

Can I clone a database protected by TDE (Transport Data Encryption)?

Yes, the SQL Server instance used to host the Clone will need the certificate used to encrypt the data (as would the instance used if taking an image from a backup)

 

  • No labels