Working with a historical version

To examine archived information, you must access the data through a historical version. When connecting to a historical version, you are connecting to a defined moment in time. The moment is either the current database's time (DEFAULT) or can be defined by specifying a date and time.

You can view historical versions by connecting directly to a specific date and time through the Spatial Database Connection Properties dialog box in ArcCatalog or the Catalog window in ArcMap:

Spatial database connection dialog box

In the Connection details section of the dialog box,click the Change button to specify whether you want to connect to a transactional or historical version. The Connection Details dialog box appears.

Connecting to a historical version

If you choose to reference a historical version, you have the option to pick from a list of historical markers or a specific date and time. A historical marker is a named moment used to quickly connect to important dates and times. See the section on historical markers to learn how and when to create historical markers. Once connected, all archive-enabled datasets previewed in ArcCatalog display the data for the moment you have defined.

Connecting to the DEFAULT historical marker from this window, or through the Change Version or the Geodatabase History Viewer dialog boxes in ArcMap, displays the current representation of the archive classes, which is equivalent to the class representations in the transactional DEFAULT version.

Connecting through the DEFAULT historical marker allows a read-only connection, which can actually consume fewer database resources than working with the equivalent versioned class. The archive class does not rely on the information stored in the delta tables or the ArcSDE repository versioning tables, meaning that querying the archive class for all records that are currently active (gdb_to_date of 12/31/9999) can often be faster than querying the DEFAULT transactional version.

The Refresh Database Time command Refresh database time commandupdates the date control with the current database time. This ensures that the date and time are consistent between the client and the database server.

When working with archived information, it is important to understand that the transaction time recorded in the DBMS is received from the server OS. This will influence how you access and query the archive class. The Refresh Database Time command is available in several locations in ArcMap and updates the date control with the current database time. This ensures that the date and time are consistent between the client and the database server.

If working in a time zone different than the server, queries against a moment in time must reflect the server's time, not the time on the client OS. For example, if the edit was performed at 9:05 a.m. (PST) but the DBMS resides in New York, the transaction time recorded for this edit is actually 12:05 p.m. (EST). Subsequently, if the editor were to query the historical version at 9:05 a.m.,he or she would no longer see the edit, because at 9:05 a.m. on the server, that feature had not been created. To see the newly added feature, the editor would need to query the DBMS at 12:05 p.m.

NoteNote:

If you specify a date and time prior to the moment that archiving was enabled, no data will be accessible. Archived data is only accessible from the moment you enable archiving forward. For example, if you enable archiving on 1/1/06 and then change to a historical version specifying the date 12/31/05, no data will appear.

To view a historical version in ArcMap, you first change to a historical version through the Change Version dialog box by clicking the Change Version button on the Versioning toolbar. This command allows you to choose either a transactional or historical version. To change to a historical version, choose the Historical option under Version type.

Choosing the Historical option in the Change Version dialog box

There are two ways to choose the moment for a historical version: either choose a named historical marker or choose a specific date and time.

Changing to an historical version

After you change versions, ArcMap displays the data for the historical version referencing the moment you have selected.

Related Topics


1/5/2011