Summary
In this tutorial you will learn how to create a snapshot in Local Storage and how to use Automation to create and refresh snapshots.
Note: This feature is available in the Toad Data Point Professional Edition only.
In this tutorial you will learn:
You will need:
Watch Automate Creating and Refreshing Snapshots to see a video presentation of this tutorial.
Local Storage snapshots are a very useful tool. You can use them to temporarily store data for reporting or querying purposes, similar to Local Storage tables. Snapshots however have an additional feature—they can be refreshed at any time to reflect the current data in the source database. This gives you the added flexibility to import and manipulate data, and then easily refresh it from the source data.
For example, create a Local Storage snapshot from data you have manipulated in Transform and Cleanse. Later, when you refresh the snapshot, the data is updated to the current data in the source database, and the transform and cleanse rules are re-applied.
You can save data as a Local Storage snapshot in a variety of different ways in Toad. In addition, you can also create and refresh snapshots using an Automation script.
There are several different ways to create a snapshot in Local Storage.
In the Save to Local Storage dialog, select Snapshot. Then select or create a database, and select or create a snapshot name. If this is the first time you have used your Local Storage, you must first create a new database. Simply enter a name in the Database field.
Note: You can also designate a primary key and modify the data types using this dialog.
Refresh a Snapshot
In the Save to Local Storage dialog, select Snapshot. Then select or create a database, and select or create a snapshot name.
Note: You can also designate a primary key and modify the data types using this dialog.
Note: This section of the tutorial was created using the legacy Transform and Cleanse tool available in Toad Data Point 3.7 and earlier releases. Some steps might not be applicable to the new Transform and Cleanse tool available in Toad Data Point 3.7 or later.
You can use the Transform and Cleanse tool to modify or cleanse data prior to sending it to Local Storage. If you save the transformed and cleansed data as a snapshot in Local Storage, when you refresh the snapshot, Toad updates the snapshot to reflect the current data in the source database and re-applies the transform and cleanse rules.
The following example demonstrates how transformed data saved to Local Storage can be refreshed to reflect the current data with the transform and cleanse rules re-applied.
Create Original Data
Then select a database (or create a new one), and name the new table ADDRESS_2.
Transform Data and Save to Local Storage
In the Save to Local Storage dialog, select Snapshot. Select a database (or create a new one). Name the snapshot ADDRESS_2_TRANS.
Modify Original Data and Refresh Snapshot
Click the hyperlink in the message that displays to open and review the snapshot.
Notice that the snapshot was updated to reflect the current data in the ADDRESS_2 table, including the changes you made, and that the transform and cleanse rule was re-applied to the current data.
View Snapshot Details
You can also save data to Local Storage when you import data using the Import Wizard.
You can automate the process of saving data to a Local Storage snapshot. These Automation activities allow you to save their output as a Local Storage snapshot: Execute Script and Clean Data (in addition to the Import Wizard).
In the Activity Input tab, enter the following query: Select * from ADDRESS. Then select Local Storage and Snapshot in export options section.
In the Activity Input tab, in the Export to Local Storage section, select a database and select Snapshot. This will instruct your script to export the modified data to a snapshot in Local Storage.
After you create a snapshot in Local Storage, you can automate the process of refreshing the snapshot.
See Schedule Your Script to learn how to schedule the Automation script.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Conditions d’utilisation Confidentialité Cookie Preference Center