Primavera (MOSC)

MOSC Banner

P6 validate schema Missing Constraint task.fk_task_projwbs

edited Jul 13, 2016 5:02AM in Primavera (MOSC) 3 commentsAnswered

Hi

From knowledge base i got the solution for oracle database,  please help me implement the same in SQL Server.

CREATE TABLE tmptask AS

SELECT task_id, proj_id, wbs_id

FROM task

WHERE wbs_id NOT IN (SELECT wbs_id FROM projwbs);

  1. 4. Run the following statement to create a procedure (cleanup_orphans) which will be utilized to remove data from the TASK table

(and all child tables to TASK) which does not exist in the parent table (PROJWBS) using the values in the temporary table created from

step 3:

CREATE OR REPLACE

PROCEDURE cleanup_orphans

AS

VTASKID NUMBER;

VPROJID NUMBER;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center