Welcome to Forums Sign in | Join | Help | Forums
in Search





Make the world a better place.

Back End tables

Last post 05-09-2008 11:59 AM by Wayne Tarr. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 03-04-2008 6:04 PM

    • Joseph Mera
    • Not Ranked
    • Posts 4
    • Organization: University of Central Florida Foundation

    Back End tables

    I am trying to run a report through access.  I want a list of users, and the groups that they are a part of.  I am tapping into the tables:  dbo_USERS, dbo_USERGROUPS.  Does anyone know which table actually shows the groups by name?  In the user groups table, it only shows an ID.

     

    Thanks.

  • 03-05-2008 9:04 AM In reply to

    • Drew Allen
    • Top 10 Contributor
    • Posts 476
    • Organization: Children's Hospital of Philadelphia
    • Products:  The Information Edge, The Raiser's Edge

    Re: Back End tables

    The USERS table contains the names of the groups.

    Drew 

    J. Drew Allen
    The Children's Hospital of Philadelphia
  • 03-10-2008 5:49 PM In reply to

    • Mitchell Gibbs
    • Top 50 Contributor
    • User Since: 2000
    • Posts 112
    • Organization: Advocate Charitable Foundation
    • Products:  The Raiser's Edge

    Re: Back End tables

    Which product is that? In RE, the security group names are in the SECURITYGROUP table.

    However, since I don't see a USERGROUPS table - I might misunderstand the context of the question.

    Mitch
     

  • 05-08-2008 12:20 PM In reply to

    • Joseph Mera
    • Not Ranked
    • Posts 4
    • Organization: University of Central Florida Foundation

    Re: Back End tables

    Thanks, but i have that table, and it does not include the groups.  I am currently using the following SQL: 

     SELECT dbo_USERS.USERSID, dbo_USERS.USERSID, dbo_USERS.SUPERVISOR, dbo_USERS.NAME, dbo_USERS.DESCRIPTION
    FROM dbo_USERS INNER JOIN (dbo_GROUPS RIGHT JOIN dbo_USERSGROUPS ON dbo_GROUPS.GROUPSID = dbo_USERSGROUPS.GROUPSID) ON dbo_USERS.USERSID = dbo_USERSGROUPS.USERSID;

    The fields in the user groups and groups tables are empty.  Is there another table that i should be referencing?  I was told, Security Groups table, but i cannot seem to find it.

  • 05-09-2008 10:21 AM In reply to

    • Mitchell Gibbs
    • Top 50 Contributor
    • User Since: 2000
    • Posts 112
    • Organization: Advocate Charitable Foundation
    • Products:  The Raiser's Edge

    Re: Back End tables

    I'm not sure why you can't find it. You might want to try relinking to the RE7 database. I don't use Access for this, but I just tried it and I could see all of the security tables.

    Hmmm...

    Mitch

  • 05-09-2008 11:59 AM In reply to

    Re: Back End tables

    This is the SQL I use to extract the groups/users from RE

    SELECT     dbo.SECURITYGROUP.NAME AS GROUPNAME, dbo.USERS.USER_ID, dbo.USERS.NAME
    FROM         dbo.SECURITYGROUP INNER JOIN
                          dbo.SECURITYUSER ON dbo.SECURITYGROUP.SECURITYGROUP_ID = dbo.SECURITYUSER.SECURITYGROUP_ID INNER JOIN
                          dbo.USERS ON dbo.SECURITYUSER.USERS_ID = dbo.USERS.USER_ID
    WHERE     (dbo.USERS.DELETED = 0)

     
    This is on a standard RE 7.71 installation so should work for you.

     

    Regards

    Wayne Tarr
    Breast Cancer Care
    London