Guys ... got a puzzle kinda problem am stuck up with so asking for your help (after all .. you are the gurus)... What i need to do is append Src. to any column name that comes in the expression. Here we go ... and the last query is part of what I was coming up with ... not exactly working CreateTable ColumnNames(ColumnName varchar(256))goInsertinto ColumnNamesSelect'name'UNIONSelect'dbid'UNIONSelect'sid'UNIONSelect'mode'UNIONSelect'status'UNIONSelect'status2'UNIONSelect'crdate'UNIONSelect'reserved'UNIONSelect'category'UNIONSelect'cmptlevel'UNIONSelect'filename'UNIONSelect'version'goDeclare @Expression varchar(256)Select @Expression ='dbid = 1 AND cmptlevel = 100'Selectreplace(@Expression,ColumnName,'Src.'+ColumnName)from ColumnNames Wherecharindex('Src.',replace(@Expression,ColumnName,'Src.'+ColumnName))<> 0Enigma