Fix getCurrentSchema error with MS SQL server