Since there is a known issue using the Plans utility in V15 and it will only let me process 20 accounts at a time without erroring out, does anyone have a SQL query to add plans and workers?
So sorry folks, turns out you didn't need my dodgy code just an upgrade service pack. Apologies for not replying I changed jobs and missed all your replies. glad it worked itself out.
Joan Shortt-Smith - FYI before you have plans to upgrade to V16 I'd upgrade to this to fix the bug with bulk adding plans.