1. What is the error?
This is a window error. If C, C # programming or Microsoft related products are used, such errors may occur. For example, use SQL Server or Sharepoint.
2. What is hresult?
HresultIs a simple data type, which is usually used by attributes and ATL as return values. The following table describes different values. The header file winerror. h contains more values.
There are always winerror. H files in Visual Studio (in the path Vc \ platformsdk \ include)
Name |
Description |
Value |
S_ OK |
Operation successful |
Zero X 00000000 |
E_unexpected |
Unexpected failure |
0x8000ffff |
E_notimpl |
Not Implemented |
Zero X 80004001 |
E_outofmemory |
Failed to allocate the required memory |
0x8007000e |
E_invalidarg |
One or more parameters are invalid. |
Zero X 80070057 |
E_nointerface |
This interface is not supported |
Zero X 80004002 |
E_pointer |
Invalid Pointer |
Zero X 80004003 |
E_handle |
Invalid handle |
Zero X 80070006 |
E_abort |
Operation aborted |
Zero X 80004004 |
E_fail |
Unspecified failure |
Zero X 80004005 |
E_accessdenied |
The error message returned when access is rejected. |
Zero X 80070005 |
3. Error status and Solution
Status 1: This error occurs on SQL Server because the permission is insufficient.
Add related execution users to DB permissions, and add them to the system admin group if necessary.
Status 2: The transaction log of SQL Server is full. It is solved by truncating the transaction log.
- Open SQL Server Management studio and locate the site content dB.
- Select the DB and right click to open the backup task.
- Select the transaction log to backup, go to options and select the radio button 'truncate log '.
- Start the backup.
- Done. Transaction log is truncated.