fix sql server for transitions