SQL SERVER compatibility fixes
Merge pull request #28 from gtriai/master

SQL SERVER compatibility fixes