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