Steven:
You found all the records, you simply didn't parse them correctly. Look at
the third record returned and note the start and end dates on the record.
You'll likely see that the end date of the record is one day after the start
and, therefore, that this record is recording 2 days work at 4hrs/day. This
is a standard record optimization routine in Project and Project Server.
Anytime a resource reports the same work value for repeating time periods,
the system condenses this to one record. This applies to all types of
time-phased data in the system.
Have you examined pjdb.htm and pjsvrdb.htm in your help files directory?
These are invaluable references for working with the database, and contain
both SQL samples to assist your dev efforts.
--
Gary L. Chefetz, MVP
"We wrote the books on Project Server"
http://www.msprojectexperts.com
For Project Server FAQs visit
http://www.projectserverexperts.com
For Project FAQs visit
http://www.mvps.org/project
-
Mike thanks again and sorry for the multiple posts but the SQL I was using
is close to what I want but it does not take into account multiple entries
for a task during the same time period.
For instance if I enter into project the following:
S M T W T F S
Project A
Task1 4
Task2 4
Projet B
Task1 4 4
The SQL below returns the following
ProjectA SJY Task1 4
ProjectA SJY Task2 4
ProjectB SJY Task1 4
I somehow need to modify the SQL so that it finds all records in the
MSP_WEB_WORK table but I do not know how to do that.
Again any help would be greatly appreciated!
SELECT
p.PROJ_NAME,
r.RES_NAME,
a.TASK_NAME,
w.wwork_value/60000 as [work]
FROM
dbo.MSP_WEB_WORK w JOIN dbo.MSP_WEB_ASSIGNMENTS a ON
w.WASSN_ID = a.WASSN_ID
JOIN dbo.MSP_WEB_RESOURCES r ON
a.WRES_ID = r.WRES_ID
JOIN dbo.MSP_WEB_PROJECTS p ON
p.WPROJ_ID = a.WPROJ_ID
WHERE
w.wwork_type = 1
and w.wwork_value > 0
and res_name = 'sjy'
and w.WWORK_START between '3/6/2005' and '3/9/2005'
ORDER BY
p.PROJ_NAME,
r.RES_NAME,
a.TASK_NAME