I recently upgraded a TG flight with TG miles, though I had my UA number in the account to earn. Unfortunately, the miles went to TG, and it will take a long time to get it all resolved.
Mind you, I've never had a problem doing the same with NH and SQ flights.