BS-1850 : Fix errors to execute migration on SQLServer