Difference between revisions of "Dbo.ErrorLog (table)"

From dbscript Online Help
Jump to: navigation, search
Line 110: Line 110:
 
| not null
 
| not null
 
|  
 
|  
| Primary key for ErrorLog records.PK_ErrorLog_ErrorLogID
+
| Primary key for ErrorLog records.<br />PK_ErrorLog_ErrorLogID
 
|- valign="top"
 
|- valign="top"
 
| ErrorTime
 
| ErrorTime
Line 116: Line 116:
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| The date and time at which the error occurred.
+
| The date and time at which the error occurred.<br />
 
|- valign="top"
 
|- valign="top"
 
| UserName
 
| UserName
Line 122: Line 122:
 
| not null
 
| not null
 
|  
 
|  
| The user who executed the batch in which the error occurred.
+
| The user who executed the batch in which the error occurred.<br />
 
|- valign="top"
 
|- valign="top"
 
| ErrorNumber
 
| ErrorNumber
Line 128: Line 128:
 
| not null
 
| not null
 
|  
 
|  
| The error number of the error that occurred.
+
| The error number of the error that occurred.<br />
 
|- valign="top"
 
|- valign="top"
 
| ErrorSeverity
 
| ErrorSeverity
Line 134: Line 134:
 
| null
 
| null
 
|  
 
|  
| The severity of the error that occurred.
+
| The severity of the error that occurred.<br />
 
|- valign="top"
 
|- valign="top"
 
| ErrorState
 
| ErrorState
Line 140: Line 140:
 
| null
 
| null
 
|  
 
|  
| The state number of the error that occurred.
+
| The state number of the error that occurred.<br />
 
|- valign="top"
 
|- valign="top"
 
| ErrorProcedure
 
| ErrorProcedure
Line 146: Line 146:
 
| null
 
| null
 
|  
 
|  
| The name of the stored procedure or trigger where the error occurred.
+
| The name of the stored procedure or trigger where the error occurred.<br />
 
|- valign="top"
 
|- valign="top"
 
| ErrorLine
 
| ErrorLine
Line 152: Line 152:
 
| null
 
| null
 
|  
 
|  
| The line number at which the error occurred.
+
| The line number at which the error occurred.<br />
 
|- valign="top"
 
|- valign="top"
 
| ErrorMessage
 
| ErrorMessage
Line 158: Line 158:
 
| not null
 
| not null
 
|  
 
|  
| The message text of the error that occurred.
+
| The message text of the error that occurred.<br />
 
|}
 
|}
  

Revision as of 01:09, 27 November 2009

wikibot

Table dbo.ErrorLog


Column Data Type Nullable Default PK Index
ErrorLogID int not null PK_ErrorLog_ErrorLogID
ErrorTime datetime not null (getdate())
UserName sysname not null
ErrorNumber int not null
ErrorSeverity int null
ErrorState int null
ErrorProcedure nvarchar(126) null
ErrorLine int null
ErrorMessage nvarchar(4000) not null

automatically generated

Table dbo.ErrorLog
Description Audit table tracking errors in the the AdventureWorks database that are caught by the CATCH block of a TRY...CATCH construct. Data is inserted by stored procedure dbo.uspLogError when it is executed from inside the CATCH block of a TRY...CATCH construct.


Column Data Type Nullable Default Description / PK / Index
ErrorLogID int not null Primary key for ErrorLog records.
PK_ErrorLog_ErrorLogID
ErrorTime datetime not null (GETDATE()) The date and time at which the error occurred.
UserName sysname not null The user who executed the batch in which the error occurred.
ErrorNumber int not null The error number of the error that occurred.
ErrorSeverity int null The severity of the error that occurred.
ErrorState int null The state number of the error that occurred.
ErrorProcedure nvarchar(126) null The name of the stored procedure or trigger where the error occurred.
ErrorLine int null The line number at which the error occurred.
ErrorMessage nvarchar(4000) not null The message text of the error that occurred.


Referencing Object Object Type Reference Type
dbo.uspLogError Procedure Insert