I am using #C and SQL. I\'m looking to generate a unique reference number like XN-ddMMyyyy-0001 XN - just random text noting what reference number belongs to what pr