I have a database called MasterDatabase that has table MainIndex with columns Id, Database (nvarchar), Table(nvarchar)
and I have 2 other databases with tables and data.
Is there a way to substitute the FROM statement with results from the MasterDatabase.MainIndex?
Can this be done with LINQ?