G
Guest
My company uses a tool called Primavera as a project scheduling/project
management tool. The software has a sqlserver back end and in that db there
is a table that contains records for every person who is assigend to a
project, what task they are assigned to and how many hours they will spend
over the life of each task to which they are assigned. It looks essentially
like this:
tblTaskRsrc
TaskRsrcID RsrcID ProjID TaskID BegDate EndDate Hours
TR1 R1 P1 T1 12/1/05 1/31/06 300
TR2 R1 P2 T2 1/1/06 1/15/06 80
TR3 R2 P2 T2 1/1/06 1/15/06 80
Hopefully that gives you an Idea.
What I need to give my users is how many hours per month are planned by
project and/or resource for some set reporting timeframe. The timeframes are
up to 2 years at a pop and there are thousands of records in tblTaskRsrsc.
The way I do this now is find out how many working days are between the
begin and end dates and then divide the number of hours by days to get the
per day hours. Once I have that, I bump the resultant table against another
table that contains one row for every working day in my timeframe so that
what I end up with is a row for every taskrsrc/day in my timeframe.
As you can imagine, this is EXTREMELY slow and the resulting tables are
huge. Does anyone have any thoughts on a more efficient way of doing this
kind of thing?
Any help is greatly appreciated...
Thanks,
Mike
management tool. The software has a sqlserver back end and in that db there
is a table that contains records for every person who is assigend to a
project, what task they are assigned to and how many hours they will spend
over the life of each task to which they are assigned. It looks essentially
like this:
tblTaskRsrc
TaskRsrcID RsrcID ProjID TaskID BegDate EndDate Hours
TR1 R1 P1 T1 12/1/05 1/31/06 300
TR2 R1 P2 T2 1/1/06 1/15/06 80
TR3 R2 P2 T2 1/1/06 1/15/06 80
Hopefully that gives you an Idea.
What I need to give my users is how many hours per month are planned by
project and/or resource for some set reporting timeframe. The timeframes are
up to 2 years at a pop and there are thousands of records in tblTaskRsrsc.
The way I do this now is find out how many working days are between the
begin and end dates and then divide the number of hours by days to get the
per day hours. Once I have that, I bump the resultant table against another
table that contains one row for every working day in my timeframe so that
what I end up with is a row for every taskrsrc/day in my timeframe.
As you can imagine, this is EXTREMELY slow and the resulting tables are
huge. Does anyone have any thoughts on a more efficient way of doing this
kind of thing?
Any help is greatly appreciated...
Thanks,
Mike