Forum Discussion

Scott_B1's avatar
Scott_B1
Level 4
9 years ago

SQL Query to identify VaultEntryID in EnterpriseVaultDirectory.dbo.Root

Hi, I hope someone out there can help me. I am currently trying to determine what archive some shortcuts belong to. The Enterprise Vault 8 system is no longer online & i have restored the database...
  • Ben_Watts's avatar
    9 years ago

    Ok this should give you what you need if you only have the SQL tables to work with, make sure the EnterpriseVaultDirectory and Vault Store DBs are on the same SQL Server/Instance otherwise you will need to alter the query to suit.

     

    Run it against you Vault Store DB which holds the TransactionIds you are interested in:-

    SELECT ArchiveName
    , VaultEntryId AS ArchiveID
    , IDTransaction
    , IDDateTime AS ItemDateTime
    , ArchivedDate
    FROM Saveset
    INNER JOIN ArchivePoint on ArchivePoint.ArchivePointIdentity = Saveset.ArchivePointIdentity
    INNER JOIN EnterpriseVaultDirectory..ArchiveView AV on AV.VaultEntryId = ArchivePoint.ArchivePointId