User-359936451 posted
Looks pretty simple, you just need to replace UserID with UserName, right?
Don't each of your connections strings have distinct instance names?
So you return a data table from each database.
As you loop through the table with UserIds and times. Go get the UserName from the second table where the UserIDs match.
I would probably add a column to table 1 to hold the names, then just populate that cell when the UserId matches.
You could also use the Merge option to create a new third table, then not show the columns which are not needed.