#6494: SQL update for MSSQL