select distinct applicationCode from tbl_APP_Configurations where ownerId = -1 and ownerType = '*' and applicationInstance = '*' insert into fsenablers..tbl_APP_Configurations ( ownerId, ownerType, applicationInstance, applicationCode, parameterName, parameterValue, parameterType ) values ( , , , , , , )