Improvements to SQLServer support

-Corrected exit codes in case of exception
-Added documentation