SqlReadOnlyTransactionRepository to X12

Is it possible to transform the SqlReadOnlyTransactionRepository back to an X12 Interchange object? Is it advisable?

I intend on parsing and processing each file as it comes in on our inbound EDI server and saving to sql as I go. But occasionally I need to reprocess a file from another production server and if I can fetch the object from sql to reprocess it would solve that
problem.

You can simply pull the data from the [dbo].[Segment] table filtered by the InterchangeId ordered by sequence and concatenate the string and then parse it with the X12Parser to get your interchange object.