Mac1986 (5/2/2016)
Thanks a million for differing me to the old thread. I got the answer from there .
ROW_NUMBER() OVER(PARTITION BY ser.servername ORDER BY ser.servername DESC) AS RowID,
Just a small note. Your RowID is not guaranteed to assign the row numbers the same way every time. I'm not sure if you could assign a significant way to order the rows.
Otherwise, I'm glad to have been of some help.