Fix issue #894: Add hook for _mssql.

Thanks to zeptin@gmail.com for submitting.