Forum Sponsor:

Viewer for .xer, xml and xls schedule files Schedule Reader™Free Trial

Tips on using this forum..

(1) Explain your problem, don't simply post "This isn't working". What were you doing when you faced the problem? What have you tried to resolve - did you look for a solution using "Search" ? Has it happened just once or several times?

(2) It's also good to get feedback when a solution is found, return to the original post to explain how it was resolved so that more people can also use the results.

SQL - How Can I Select Only Critical Tasks

5 replies [Last post]
C Molland
User offline. Last seen 4 years 26 weeks ago. Offline
Joined: 20 Apr 2015
Posts: 6
Groups: None

Hello

I am developing an application which pulls data from a P6 SQL database. I want to select all Critical Tasks. Can someone advise me which SQL database Tables/Fields signify a Task as being Critical please.

I thought there was a 'critical_flag' field in the TASK Table but on checking I don't have one.

Thank you.

Replies

Barrie Callender
User offline. Last seen 5 weeks 1 day ago. Offline
Joined: 15 Feb 2006
Posts: 39
Groups: None

Sorry I got trigger happy and ended up posting the same thing twice

Barrie Callender
User offline. Last seen 5 weeks 1 day ago. Offline
Joined: 15 Feb 2006
Posts: 39
Groups: None

The Total Float is held in the TOTAL_FLOAT_HR_CNT column in the TASK table.  You can look in the PROJECT table to find out what has been configured for Total Float and your SQL can be written to identify the Critical Tasks.

If you are using SQL directly then be careful to exclude the deleted Task records.

Zoltan Palffy
User offline. Last seen 16 hours 3 min ago. Offline
Joined: 13 Jul 2009
Posts: 2459
Groups: None

I still think that this wil get you what you want 

C Molland
User offline. Last seen 4 years 26 weeks ago. Offline
Joined: 20 Apr 2015
Posts: 6
Groups: None

Thanks for the suggestion. I believe that this would be used only if the critical tasks were calculated using 'Longest Path'. In our scenario critical activities are calculated based upon total float.

Zoltan Palffy
User offline. Last seen 16 hours 3 min ago. Offline
Joined: 13 Jul 2009
Posts: 2459
Groups: None

try

driving_path_flag