Actually exactly what I needed!
Coming from SQL Server over MySQL and back to SQL Server - suddenly - it annoyed me as @#%& that moving from development to production there was no way of moving the data. (Yes: backup and restore, but in a live environment you don't really want to do that, do you?)
I will tweak it a bit - also generating the actual table prior inserting.
Hopefully I will get it done and I'll post it here - if no one beats me to it...