fix for sql server, fully tested support now