I use the following script to move the EF MigrationHistory table from system tables to user tables (database tree structure):
SELECT * INTO [dbo].[TempMigrationHistory] FROM [dbo].[__MigrationHistory];
DROP TABLE [dbo].[__MigrationHistory];
EXEC sp_rename 'TempMigrationHistory', '__MigrationHistory';
Thus, I can export the table by selecting the standard script / export option under SSMS.
(A full description of the handling of this problem is here )
source
share