Improvements to SQLServer support

-Corrected exit codes in case of exception and adapted tests accordingly
-Added documentation