MS Project Now! Blog

Daniel Bell's avatar

Cancel Delegate Session in Project Server 2010 via SQL Statements

I recently had a client in a situation where they started a delegate session as another user, however, that other user was not assigned to any security groups within Project Web App.  Obviously this caused an issue as the user could no longer access PWA.  Simply logging in as another use and delete the delegate does not resolve this either.  The correction is easy, provided you are not weary of running update statements against your published database.  In a nutshell, there is a field in the MSP_PROJECTS table named RES_ACTING_AS_UID.  This field gets populated with a UID of the DELEGATION being used which is located in the MSP_RESOURCE_DELEGATIONS table.  To cancel the delegation, you merely set the RES_ACTING_AS_UID field to null.  Here’s a simple process to do so:

Locate the user record assigned to the delegation as follows:

SELECT RES_UID, RES_ACTING_AS_UID from MSP_PROJECTS where RES_NAME like ‘%resourceLastName%’

Make note of the value in the RES_ACTING_AS_UID field.  if there is no value, then this resource is not currently acting as a delegate.  If there is a value and this person IS having issues you can set this value to NULL, which will cancel the delegation.  Do so as follows (you will need the RES_UID field from above:

UPDATE MSP_RESOURCES SET RES_ACTING_AS_UID = NULL WHERE RES_UID = RES_UID

When you run into problems like this, it can be difficult to find the answers you are looking for. MS Project Now! can help minimize your down time with our expert support services.

Return TopTrackbackPrintPermalink

Comments

You need to log in to comment.
    Posted @ 4/8/2012 8:09 AM by Daniel Bell
    Daniel Bell's avatar

    sorry for the delay. this is the Published database.
    -Dan

    Posted @ 2/10/2012 11:47 AM by bd
    bd's avatar

    I tried running this, but it can't find the following column fields.
    Msg 207, Level 16, State 1, Line 1
    Invalid column name 'RES_NAME'.
    Msg 207, Level 16, State 1, Line 1
    Invalid column name 'RES_UID'.
    Msg 207, Level 16, State 1, Line 1
    Invalid column name 'RES_ACTING_AS_UID'.

    Can you verify the database, table, and column names please?