src/SmartFactory/DatabaseWorkers/MSSQL_DBWorker.php
protected function sys_get_errors()
    {
        $errors = sqlsrv_errors(SQLSRV_ERR_ERRORS);
        if (empty($errors)) {
            return "";
        }
        
        $message_array = [];
        
        foreach ($errors as $error) {
            $message_array[$error['message']] = $error['message'];
        }
        
        return implode("\n", $message_array);
    }
protected function sys_get_errors()
    {
        $errors = sqlsrv_errors(SQLSRV_ERR_ERRORS);
        if (empty($errors)) {
            return "";
        }
        
        $message_array = [];
        
        foreach ($errors as $error) {
            $message_array[$error['message']] = $error['message'];
        }
        
        return implode("\n", $message_array);
    }
protected function sys_get_errors ( ) { $ errors = sqlsrv_errors ( SQLSRV_ERR_ERRORS ) ; if ( empty ( $ errors ) ) { return "" ; } $ message_array = [ ] ; foreach ( $ errors as $ error ) { $ message_array [ $ error [ 'message' ] ] = $ error [ 'message' ] ; } return implode ( "\n" , $ message_array ) ; }
Retrieves the last errors ocurend while execution of the query.

@return string
Returns the string of errors separated by the new line symbol.

@author Oleg Schildt
Retrieves the last errors ocurend while execution of the query .