cancel
Showing results for 
Search instead for 
Did you mean: 

SQL Query

GTK
Level 6

i am after a SQL query to display:

  • user
  • vault store
  • EV server

 

We are on EV 8sp5 using SQL 2005.

 

Can anyone provide such a SQL query please?

1 ACCEPTED SOLUTION

Accepted Solutions

JesusWept3
Level 6
Partner Accredited Certified

You probably forgot to change the Database from Master to EnterpriseVaultDirectory
Anywho, without the VIEW query, it would look like the following

 

SELECT A.ArchiveName, VSE.VaultStoreName, CE.ComputerName
  FROM EnterpriseVaultDirectory.dbo.Archive A, 
       EnterpriseVaultDirectory.dbo.VaultStoreEntry VSE, 
       EnterpriseVaultDirectory.dbo.StorageServiceEntry SSE,
       EnterpriseVaultDirectory.dbo.ComputerEntry CE
 WHERE A.VaultStoreEntryId = VSE.VaultStoreEntryId
   AND VSE.StorageServiceEntryId = SSE.ServiceEntryId
   AND SSE.ComputerEntryId = CE.ComputerEntryId
ORDER BY A.ArchiveName ASC
https://www.linkedin.com/in/alex-allen-turl-07370146

View solution in original post

6 REPLIES 6

AmolB
Moderator
Moderator
Employee Accredited Certified

Try the below query on Directory Database.

 

select A.ArchiveName,V.VaultStoreName, C.ComputerName from ArchiveView A

inner join 

view_VaultStore_Entity V on A.VaultStoreEntryId = V.VaultStoreEntryId

inner join 

ComputerEntry C on V.ComputerEntryId = C.ComputerEntryId

GTK
Level 6

running that query i get the attached error ?

AmolB
Moderator
Moderator
Employee Accredited Certified

I am sorry, unfortunately I dont have EV 8 setup.

Above query works fine in EV11 setup.

GTK
Level 6

can anyone else assist please?

JesusWept3
Level 6
Partner Accredited Certified

You probably forgot to change the Database from Master to EnterpriseVaultDirectory
Anywho, without the VIEW query, it would look like the following

 

SELECT A.ArchiveName, VSE.VaultStoreName, CE.ComputerName
  FROM EnterpriseVaultDirectory.dbo.Archive A, 
       EnterpriseVaultDirectory.dbo.VaultStoreEntry VSE, 
       EnterpriseVaultDirectory.dbo.StorageServiceEntry SSE,
       EnterpriseVaultDirectory.dbo.ComputerEntry CE
 WHERE A.VaultStoreEntryId = VSE.VaultStoreEntryId
   AND VSE.StorageServiceEntryId = SSE.ServiceEntryId
   AND SSE.ComputerEntryId = CE.ComputerEntryId
ORDER BY A.ArchiveName ASC
https://www.linkedin.com/in/alex-allen-turl-07370146

GTK
Level 6

thanks JesusWept3.. exactly what i need!