move sql_external to use recur_Common, RT#7212