HIVE-9892 : various MSSQL upgrade scripts don't work ADDENDUM (Sergey Shelukhin, reviewed by Thejas M Nair)