Query to check users who have been logging into the Erwin r9 Mart or who have current sessions running Matt Russo Updated November 15, 2019 16:37 Follow Select a.Username,b.S_Machine,b.S_Start,b.S_EndFrom m9User a,m9Session bWHERE a.UserId = b.U_Id Related articles Is there a query that will give me all the library, model, and table names for an r9.6 and later mart? erwin DM Mart -- Is there a way to purge or run a script to delete inactive sessions? erwin DM Downloads & Guides. Is there a query that will pull the mart users and their permissions and ignore the versions? gathering Usage statistics from the mart Comments 0 comments Please sign in to leave a comment.