• It turned out there was a typo in the

    SET @ndf_extension = '.ndf' statement.

    everything works now

    Thanks to all for your help!

    Much appreciated!

    Cheers,

    Cor