If you are simply querying the databases and not attempting to perform any kind of extensive logic, you can create a view within SQL Server that connects to both databases as outlined here --> Create view across multiple databases. You would then need to query the view with either raw ADO.NET or through LINQ to Entities and Entity Framework. If you need to do anything more complex, you will want to look into stored procedures.
**As T.S. pointed out, you will need to create this view on one of the two databases and make sure your connection string points to that database.