To change the properties of each object added to the query, right click the object name and select Edit... item from the drop-down menu or double-click the object header.
The Datasource Properties window appears.
The Datasource Properties dialog may vary from server to server, but the Alias property is the same for all database servers.