IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AI_NEWBUILDREPORTHEAD' AND KSQL_COL_NAME ='FISEXCEPTIONREPORT') 
 ALTER TABLE T_AI_NEWBUILDREPORTHEAD ADD (FISEXCEPTIONREPORT CHAR(1) DEFAULT ' ' NOT NULL );
 
EXEC p_AlterColumn 'T_AI_NEWBUILDREPORTENTRY', 'FMESSAGE', 'NVARCHAR(1000)', 'NOT NULL', '0100', ''' '''; 
