Becareful with it.
Might not be related, but I'm not sure what happened, I ran it one day, no problem. The next day I ran it, same as last time, right before a restart and poof. everything vanished, buildings, trees, terraforming changes... everything but characters & their inventory & whatever they were holding at the time.(saw one guy holding a cart..)
messy logs, attempted backup but the backup db was right after I ran the query. so it was still fubar'd.
Spoiler
WARN 2015-01-17 04:06:01.262 {00} <NOSCOPE> TCP: Got TCPNetEvent 'YoPatchTerrainAttachEvent' via tcp 'ch_12'(1952)
ERRR 2015-01-17 04:06:01.262 {00} <NOSCOPE> CmPatcher::attachClient() - terrain not attached: 444
ERRR 2015-01-17 04:06:01.263 {00} <NOSCOPE> CmPatcher::detachClient() - terrain not attached: 444
WARN 2015-01-17 04:06:01.263 {00} <NOSCOPE> TCP: Got TCPNetEvent 'YoPatchTerrainAttachEvent' via tcp 'ch_12'(1952)
ERRR 2015-01-17 04:06:01.263 {00} <NOSCOPE> CmPatcher::attachClient() - terrain not attached: 445
ERRR 2015-01-17 04:06:01.263 {00} <NOSCOPE> CmPatcher::detachClient() - terrain not attached: 445
WARN 2015-01-17 04:06:01.263 {00} <NOSCOPE> TCP: Got TCPNetEvent 'YoPatchTerrainAttachEvent' via tcp 'ch_12'(1952)
ERRR 2015-01-17 04:06:01.263 {00} <NOSCOPE> CmPatcher::attachClient() - terrain not attached: 446
ERRR 2015-01-17 04:06:01.263 {00} <NOSCOPE> CmPatcher::detachClient() - terrain not attached: 446
WARN 2015-01-17 04:06:01.263 {00} <NOSCOPE> TCP: Got TCPNetEvent 'YoPatchTerrainAttachEvent' via tcp 'ch_12'(1952)
ERRR 2015-01-17 04:06:01.263 {00} <NOSCOPE> CmPatcher::attachClient() - terrain not attached: 447
ERRR 2015-01-17 04:06:01.263 {00} <NOSCOPE> CmPatcher::detachClient() - terrain not attached: 447
WARN 2015-01-17 04:06:01.263 {00} <NOSCOPE> TCP: Got TCPNetEvent 'YoPatchTerrainAttachEvent' via tcp 'ch_12'(1952)
ERRR 2015-01-17 04:06:01.264 {00} <NOSCOPE> CmPatcher::attachClient() - terrain not attached: 448
ERRR 2015-01-17 04:06:01.264 {00} <NOSCOPE> CmPatcher::detachClient() - terrain not attached: 448
WARN 2015-01-17 04:06:01.264 {00} <NOSCOPE> TCP: Got TCPNetEvent 'YoPatchTerrainAttachEvent' via tcp 'ch_12'(1952)
ERRR 2015-01-17 04:06:01.264 {00} <NOSCOPE> CmPatcher::attachClient() - terrain not attached: 449
ERRR 2015-01-17 04:06:01.264 {00} <NOSCOPE> CmPatcher::detachClient() - terrain not attached: 449
WARN 2015-01-17 04:06:01.264 {00} <NOSCOPE> TCP: Got TCPNetEvent 'YoPatchTerrainAttachEvent' via tcp 'ch_12'(1952)
ERRR 2015-01-17 04:06:01.264 {00} <NOSCOPE> CmPatcher::attachClient() - terrain not attached: 450
ERRR 2015-01-17 04:06:01.264 {00} <NOSCOPE> CmPatcher::detachClient() - terrain not attached: 450
ERRR 2015-01-17 04:06:01.333 {00} <NOSCOPE> packetDataChecksum disagree!
Spoiler
ERRR 2015-01-17 04:07:35.863 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:35.894 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:35.926 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:35.958 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.022 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.054 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.119 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.150 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.246 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.246 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.342 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.375 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.438 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.471 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.503 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.534 {00} <NOSCOPE> packetDataChecksum disagree!
ERRR 2015-01-17 04:07:36.566 {00} <NOSCOPE> packetDataChecksum disagree!
After those errors, I got a ton of weird errors involving weapons, ghosts..
Spoiler
ECHO 2015-01-17 04:13:27.610 {00} <NOSCOPE> Sending new ghost of the 67108912 over ch_9 (NetFlags: 16)
ECHO 2015-01-17 04:13:27.641 {00} <NOSCOPE> Sending new ghost of the 67108912 over ch_14 (NetFlags: 16)
ECHO 2015-01-17 04:13:27.641 {00} <NOSCOPE> Sending new ghost of the 67108912 over ch_12 (NetFlags: 16)
WARN 2015-01-17 04:13:27.800 {00} <NOSCOPE> Is_hit_allowed_for_current_combo: 1 (0)
WARN 2015-01-17 04:13:27.832 {00} <NOSCOPE> Is_hit_allowed_for_current_combo: 1 (0)
Had good people on the server, hope they find a good home.