IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_BANKJOURNAL' AND KSQL_COL_NAME IN ('FDATASOURCE'))
 ALTER TABLE T_CAS_BANKJOURNAL ADD (FDATASOURCE NVARCHAR(50) DEFAULT ' ' NOT NULL );