IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_ENTITY' AND KSQL_COL_NAME ='FTASKENTITYFLAG')
 ALTER TABLE T_MSPLAN_ENTITY ADD (FTASKENTITYFLAG NVARCHAR(255) DEFAULT ' ' NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_ENTITY' AND KSQL_COL_NAME ='FTASKENTITYFLAGDESC')
 ALTER TABLE T_MSPLAN_ENTITY ADD (FTASKENTITYFLAGDESC NVARCHAR(255) DEFAULT ' ' NOT NULL );