IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ADJBIZTYPECFG' AND KSQL_COL_NAME ='FNAME') 
 ALTER TABLE T_BCM_ADJBIZTYPECFG ADD (FNAME NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ADJBIZTYPECFG' AND KSQL_COL_NAME ='FDESCRIPTION') 
 ALTER TABLE T_BCM_ADJBIZTYPECFG ADD (FDESCRIPTION NVARCHAR(500) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ADJBIZTYPECFGENTRY' AND KSQL_COL_NAME ='FPRESETNAME') 
 ALTER TABLE T_BCM_ADJBIZTYPECFGENTRY ADD (FPRESETNAME NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ADJBIZTYPECFGENTRY' AND KSQL_COL_NAME ='FSHOWNAME') 
 ALTER TABLE T_BCM_ADJBIZTYPECFGENTRY ADD (FSHOWNAME NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ADJBIZTYPECFGENTRY' AND KSQL_COL_NAME ='FENTRYDESCRIPTION') 
 ALTER TABLE T_BCM_ADJBIZTYPECFGENTRY ADD (FENTRYDESCRIPTION NVARCHAR(200) DEFAULT ' ' NOT NULL );
 
 
EXEC p_AlterColumn 'T_BCM_BIZRULESCATALOG', 'FNAME', 'NVARCHAR(500)', 'NOT NULL', '0100', ''' ''';