Changes to handle MS SQL server.