I\'m looking for a way for retrieving Entity Data Model (EDM) from __MigrationHistory table using only T-SQL (so anyone, using Microsoft SQL Se
__MigrationHistory
It's apparently gzip'd xml. eg
SELECT MigrationId ,ContextKey ,cast(decompress(model) as xml) model FROM __MigrationHistory