I often compare data in tables in different databases. These databases do not have the same schema. In TSQL, I can reference them using the DB> user> table structure (DB1.dbo.Stores, DB2.dbo.OtherPlaces) to pull out the data for comparison. I like the idea of LINQPad quite a bit, but I just can't easily pull data from two different data contexts in one set of statements.
I saw how people suggested simply changing the connection string to pull data from another source into the current scheme, but, as I already mentioned, this will not be done. Did I just skip the FAQ page? This seems like a fairly ordinary procedure, unavailable to me.
In the "light" world, I would just refer to the typed datacontext created by LINQPad. Then I could simply:
DB1DataContext db1 = new DB1DataContext ();
DB2DataContext db2 = new DB2DataContext ();
And work from there.
c # linq linq-to-sql linqpad datacontext
Scott Sep 29 '09 at 22:47 2009-09-29 22:47
source share