public function getErrors()
{
$errors = null;
$errorAry = sqlsrv_errors();
foreach ($errorAry as $key => $value) {
$errors .= 'SQLSTATE: ' . $value['SQLSTATE'] . ', CODE: ' . $value['code'] . ' => ' . stripslashes($value['message']) . PHP_EOL;
}
return $errors;
}