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

From dbscript Online Help
Jump to: navigation, search
Line 5: Line 5:
 
| '''Table
 
| '''Table
 
| dbo.ErrorLog
 
| dbo.ErrorLog
 +
|- valign="top"
 +
| '''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.
 
|-
 
|-
 
|}
 
|}
Line 15: Line 18:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''PK
+
| '''Description / PK / Index
| '''Index
 
 
 
|-
+
|- valign="top"
 
| ErrorLogID
 
| ErrorLogID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| PK_ErrorLog_ErrorLogID
+
| Primary key for ErrorLog records.<br />PK_ErrorLog_ErrorLogID
|
+
|- valign="top"
|-
 
 
| ErrorTime
 
| ErrorTime
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
|  
+
| The date and time at which the error occurred.<br />
|
+
|- valign="top"
|-
 
 
| UserName
 
| UserName
 
| sysname
 
| sysname
 
| not null
 
| not null
 
|  
 
|  
|  
+
| The user who executed the batch in which the error occurred.<br />
|
+
|- valign="top"
|-
 
 
| ErrorNumber
 
| ErrorNumber
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
|  
+
| The error number of the error that occurred.<br />
|
+
|- valign="top"
|-
 
 
| ErrorSeverity
 
| ErrorSeverity
 
| int
 
| int
 
| null
 
| null
 
|  
 
|  
|  
+
| The severity of the error that occurred.<br />
|
+
|- valign="top"
|-
 
 
| ErrorState
 
| ErrorState
 
| int
 
| int
 
| null
 
| null
 
|  
 
|  
|  
+
| The state number of the error that occurred.<br />
|
+
|- valign="top"
|-
 
 
| ErrorProcedure
 
| ErrorProcedure
 
| nvarchar(126)
 
| nvarchar(126)
 
| null
 
| null
 
|  
 
|  
|  
+
| The name of the stored procedure or trigger where the error occurred.<br />
|
+
|- valign="top"
|-
 
 
| ErrorLine
 
| ErrorLine
 
| int
 
| int
 
| null
 
| null
 
|  
 
|  
|  
+
| The line number at which the error occurred.<br />
|
+
|- valign="top"
|-
 
 
| ErrorMessage
 
| ErrorMessage
 
| nvarchar(4000)
 
| nvarchar(4000)
 
| not null
 
| not null
 
|  
 
|  
|  
+
| The message text of the error that occurred.<br />
|  
+
|}
 +
 
 +
 
 +
 
 +
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 +
|- style="background:silver"
 +
| '''Reference Type
 +
| '''Object Type
 +
| '''Referencing Object
 +
 
 +
|-
 +
| Insert
 +
| Procedure
 +
| [[dbo.uspLogError_(procedure)|dbo.uspLogError]]
 +
 
 
|}
 
|}
 +
 +
 +
 
== automatically generated ==
 
== automatically generated ==
  

Revision as of 23:54, 28 December 2009

wikibot

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.


Reference Type Object Type Referencing Object
Insert Procedure dbo.uspLogError


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.


Reference Type Object Type Referencing Object
Insert Procedure dbo.uspLogError