Richard,
Thanks for the script - interesting technique.
It looks like line 175 was truncated (@Object needs to be @ObjectId).
Also, on first-run, I'm getting a message:
Warning: The maximum length of the row exceeds the permissible limit of 8060 bytes. For some combination of large values, the insert/update operation will fail.
.
I'll need to deconstruct the goings-on to find out why this is coming up (and it's just a warning, so maybe it's not a problem).
Cheers. Thanks for the post.
Mark
Just a cog in the wheel.