Snapshots
On this page
Edits an individual named snapshot date expression for later runtime evaluation.
All windows and pages · Common controls and reading this reference
Behavior and conditions
Save requires a nonblank Snapshot name and Snapshot query. It writes the definition to repository metadata, refreshes the navigation tree and reloads the editor. It neither evaluates the expression nor refreshes DWH dates. Repository names are unique; names have a 50-character storage limit and descriptions 250 characters. The editor does not prevalidate SQL syntax or these lengths.
The generated DWH update assigns Snapshot query to @Date. @ActDate is the next midnight according to SQL Server GETDATE(), not the current instant. For example, DATEADD(day, -1, @ActDate) calculates the start of the current day. These are expression examples, not executed results from a sample repository. Invalid expressions are reported by the runtime update as an invalid snapshot definition.
The repository can store 4,000 Unicode characters for the query, but the inspected DWH update routine reads it through a 1,000-character non-Unicode variable. Long or non-ASCII expressions therefore require particular review; storage capacity is not a safe execution guarantee. Saving a definition is also not a guarantee that an existing DWH snapshot configuration has been replaced by synchronization.
Related guidance
Controls
Find a control
General
Snapshot
Snapshot / Snapshot query
Details
The entries include tabs, grid columns, fields and context-menu actions. Repeated captions can belong to different grids or menus. Selection-dependent and initially hidden controls are included; inclusion is not a promise that every control is visible at once. Fixed choices below are declared choices, not a platform support matrix.
XAML preview
WPF renders the compiled XAML view with the application styles and empty fields. The image variant follows the documentation color theme.
Window layout

General
Cancel
Navigates back. If the application has marked edits as unsaved, the shared Save changes? prompt offers Yes (save), No (discard pending edits) or Cancel (remain). Previously saved metadata is not undone.
Location: General. Control: Button.
Save
Rejects a blank name or query, inserts a new snapshot or updates the existing definition, and refreshes the tree/page. Does not run the query or update snapshot dates in the DWH.
Location: General. Control: Button.
Snapshot name
Required repository-unique snapshot name, stored with a maximum length of 50 characters. A blank name is rejected before saving. Changing it updates the definition, not the current DWH date.
Location: General. Control: Text field.
Panel divider
Drag to resize the adjacent panels. This changes presentation, not stored data values.
Location: General. Control: Panel divider.
Snapshot
Location: General. Control: Group.
Details
Location: General. Control: Expander.
Details

Details
Description
Optional documentation, stored with a maximum length of 250 characters; whitespace-only text is saved as NULL. Not used to calculate the snapshot date.
Location: Details. Control: Text field.
Other controls
Snapshot
Snapshot query
Location: Snapshot. Control: Group.
Snapshot / Snapshot query
SQL expression calculating the snapshot date
Required SQL expression evaluated later as SET @Date = <expression>. Supply a date-valued expression, not a standalone SELECT or UPDATE statement. @ActDate denotes next midnight. Save checks only that text is nonblank; see behavior notes for runtime length/encoding limits.
Location: Snapshot / Snapshot query. Control: SQL editor.
Initial value: @ActDate for a new snapshot; existing snapshots retain their stored expression.
Scope
Options can depend on the selected object, its saved values and the current repository.