added how to handle mssql simple mode