IDERA Snapshot Utility is a tool that allows you to create database snapshots via the command line. A snapshot is a file that contains all the schema information for a database. The schema information is stored in a proprietary format and can only be read by the IDERA SQL Schema Compare user interface or command line.

A snapshot file stores only the structure of the database, with no user-data of any kind. It can be used to recreate the tables and other objects in a database, but the tables will be empty.

The Snapshot Utility accepts parameters in the format /name:value. There are no spaces between the name and the value and the value is separated from the name with a colon <:>. If the value itself contains spaces, it should be surrounded in double quotes.

Idera Snapshot Utility supports the following arguments:

Samples:

The following command creates a snapshot for the database AdventureWorks on the local SQL Server using a trusted connection:

IderaSnapshot /s:(local) /d:AdventureWorks /sp:"c:\AdventureWorks.snpx"

The following command creates the snapshot by specifying a connection string:

IderaSnapshot /cs:"Persist Security Info=False;User ID=<username>;Password=<password>;Initial Catalog=AdventureWorks;Data Source=(local)" /sp:"c:\AdventureWorks.snpx"

The following command uses the setting file snapshot.txt to create the snapshot for two databases:

IderaSnapshot /f:"c:\snapshot.txt"

The setting file snapshot.txt contains the following lines:

/s:(local) /d:AdventureWorks_DEV /sp:"c:\AdventureWorks_DEV.snpx"
/s:(local) /d:AdventureWorks_PROD /sp:"c:\AdventureWorks_PROD.snpx"


 |    |  |   |   |