Database update script 31 for SQL Server (31/openfire_sqlserver.sql) starts with a block of comment, like this:
Apparently, at least some database servers attempt to execute the second line of the block (as if it was SQL), leading to errors like these being logged:
This script was added in release 4.6.0, and contains modifications for and OF-2062.