>I see, ok, may be it's time to start a new thread after couple of attempts.
>
>But at least you found your orphans and can deal with them as well.
I was able to make it run. I had to force a group because SQL Server, from that environment, doesn't like that the master table primary key be included in more than one record in the result.
This is a mystery to me and also about the fact that it only happens in that environment and not from SSMS.