[SQL Clone home]
These pages cover SQL Clone Technical Preview 0.2 to 0.3, which is not the latest version. Help for other versions is also available.
Creates a new clone database from an Instant Clone snapshot.
New-InstantCloneClone -NewDatabaseName <string> -SnapshotName <string> [<CommonParameters>] |
The new clone is a normal SQL Server database backed by a virtual differencing-disk, which references the snapshot file. A clone takes a few seconds to create and occupies roughly 30mb initially. As the database is used, the clone will grow to the size of the diff with the original.
-NewDatabaseName
<System.String>
The clone's name. This name is used as the name of new database.
| Aliases | None |
| Required? | true |
| Position? | named |
| Default Value | None |
| Accept Pipeline Input | false |
| Accept Wildcard Characters | false |
-SnapshotName
<System.String>
Name of snapshot to clone from. If multiple snapshots with that name are available, the most recent one is used. To specify a specific snapshot, use the SnapshotId parameter.
| Aliases | None |
| Required? | true |
| Position? | named |
| Default Value | None |
| Accept Pipeline Input | false |
| Accept Wildcard Characters | false |
-SnapshotId
<System.String>
The ID of the snapshot to clone from. You may find this useful if there are multiple snapshots with the same name.
| Aliases | None |
| Required? | true |
| Position? | named |
| Default Value | None |
| Accept Pipeline Input | false |
| Accept Wildcard Characters | false |
<CommonParameters>This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
|
This example demonstrates creating two clone databases, AdvClone1 and AdvClone2, from the snapshot AdvSnap.
Create AdvSnap with the Save-InstantCloneSnapshot cmdlet.
Use the -Verbose switch to provide more detailed feedback during clone creation.