Hello,
I'm not sure I understand what do you mean by when you print them before inserting.
Print what?
The values? All the statement? Or what?
try this:
PRINT
'INSERT INTO ##tempt (uniqueid, createdate, reminderdate)select'+...
Wish you good ideas! 🙂
Andreea