Fixes #4813: Fixed MSSQL schema that was getting incorrect info about constraints

This one is to fix #4813