Fixed MS SQL server issues in update, fixes #601