Forum Discussion

Rajesh_Velaga1's avatar
14 years ago

SQL Query to list "Bill Usage to" option

SQL Query to list "Bill Usage to" option
  • JesusWept3's avatar
    14 years ago

    SELECT A.ArchiveName "Archive Name", T.SID "Billing Owner"
    FROM Archive A, Root R, Trustee T
    WHERE A.RootIdentity = R.RootIdentity
    AND R.OwningTrusteeIdentity = T.TrusteeIdentity

    The problem you will have is that EV stores the SID and not the AD Account name, it then dos a SID lookup in AD to populate information in the VAC.

    You could use Linked Servers to bridge to AD and do a SID lookup from there i believe