Database operations fail due to Microsoft SQL collation mode inconsistencies