Quantcast
Channel: Deactivating an Enterprise Resource - Detect remaining work using a SQL query
Viewing all articles
Browse latest Browse all 20

Deactivating an Enterprise Resource - Detect remaining work using a SQL query

$
0
0

Hi Javier,

Kashif is correct, here a sample:

SELECT    dbo.MSP_EpmProject_UserView.ProjectName
        , dbo.MSP_EpmTask_UserView.TaskName
        , dbo.MSP_EpmResource_UserView.ResourceName
        , dbo.MSP_EpmAssignment_UserView.AssignmentRemainingWork
FROM         dbo.MSP_EpmAssignment_UserView INNER JOIN
                      dbo.MSP_EpmTask_UserView
                      ON dbo.MSP_EpmAssignment_UserView.TaskUID = dbo.MSP_EpmTask_UserView.TaskUID
                      INNER JOIN
                      dbo.MSP_EpmResource_UserView
                      ON dbo.MSP_EpmAssignment_UserView.ResourceUID = dbo.MSP_EpmResource_UserView.ResourceUID
                      INNER JOIN
                      dbo.MSP_EpmProject_UserView
                      ON dbo.MSP_EpmTask_UserView.ProjectUID = dbo.MSP_EpmProject_UserView.ProjectUID
WHERE     (dbo.MSP_EpmAssignment_UserView.AssignmentRemainingWork > 0)
      AND (dbo.MSP_EpmResource_UserView.ResourceName LIKE @ParmRes + N'%')
ORDER BY dbo.MSP_EpmProject_UserView.ProjectName, dbo.MSP_EpmTask_UserView.TaskName
Regards
Barbara

Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>