Retrieve varbinary value as BASE64 in MSSQL
问题 I'm looking for a way for retrieving Entity Data Model (EDM) from __MigrationHistory table using only T-SQL (so anyone, using Microsoft SQL Server Management Studio only, could do the same). I want to have a valid BASE64 string value. I don't want to fully decompress it to EDMX. I don't want to get it from *.resx migration file. When I select whole __MigrationHistory in SSMS, Model column value is like following