CORE-1861: fixing case-sensitive in MSSQL

Fixing https://liquibase.jira.com/browse/CORE-1861 and adding unit tests for it.