MSSQL: avoid warnings if result is invalid
Merge remote-tracking branch 'upstream/master'