Editing Dbo.ErrorLog (table)

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 2: Line 2:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|- valign="top"
+
|-
 
| '''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.
 
 
|}
 
|}
  
=== Columns ===
+
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 17: Line 15:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''PK
 
+
| '''Index
|- valign="top"
+
 +
|-
 
| ErrorLogID
 
| ErrorLogID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Primary key for ErrorLog records.
+
| PK_ErrorLog_ErrorLogID
|- valign="top"
+
|
 +
|-
 
| ErrorTime
 
| ErrorTime
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| The date and time at which the error occurred.
+
|  
|- valign="top"
+
|
 +
|-
 
| UserName
 
| UserName
 
| sysname
 
| sysname
 
| not null
 
| not null
 
|  
 
|  
| The user who executed the batch in which the error occurred.
+
|  
|- valign="top"
+
|
 +
|-
 
| ErrorNumber
 
| ErrorNumber
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| The error number of the error that occurred.
+
|  
|- valign="top"
+
|
 +
|-
 
| ErrorSeverity
 
| ErrorSeverity
 
| int
 
| int
 
| null
 
| null
 
|  
 
|  
| The severity of the error that occurred.
+
|  
|- valign="top"
+
|
 +
|-
 
| ErrorState
 
| ErrorState
 
| int
 
| int
 
| null
 
| null
 
|  
 
|  
| The state number of the error that occurred.
+
|  
|- valign="top"
+
|
 +
|-
 
| ErrorProcedure
 
| ErrorProcedure
 
| nvarchar(126)
 
| nvarchar(126)
 
| null
 
| null
 
|  
 
|  
| The name of the stored procedure or trigger where the error occurred.
+
|  
|- valign="top"
+
|
 +
|-
 
| ErrorLine
 
| ErrorLine
 
| int
 
| int
 
| null
 
| null
 
|  
 
|  
| The line number at which the error occurred.
+
|  
|- valign="top"
+
|
 +
|-
 
| ErrorMessage
 
| ErrorMessage
 
| nvarchar(4000)
 
| nvarchar(4000)
 
| not null
 
| not null
 
|  
 
|  
| The message text of the error that occurred.
+
|  
|}
+
|  
 
 
=== Primary Key ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Primary Key
 
| '''Columns
 
|- valign="top"
 
| PK_ErrorLog_ErrorLogID
 
| ErrorLogID
 
|}
 
 
 
=== Dependencies ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Reference Type
 
| '''Object Type
 
| '''Referencing Object
 
 
 
|- valign="top"
 
| Insert
 
| Procedure
 
| [[dbo.uspLogError_(procedure)|dbo.uspLogError]]
 
 
 
 
|}
 
|}
 
 
 
== automatically generated ==
 
== automatically generated ==
  
Line 107: Line 89:
 
| dbo.ErrorLog
 
| dbo.ErrorLog
 
|- valign="top"
 
|- valign="top"
 +
 
| '''Description
 
| '''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.
 
| 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 181: Line 165:
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
 +
| '''Referencing Object
 +
| '''Object Type
 
| '''Reference Type
 
| '''Reference Type
| '''Object Type
+
| '''Referencing Object
 
 
 
 
|-
 
|-
 +
| [[dbo.uspLogError_(procedure)|dbo.uspLogError]]
 +
| Procedure
 
| Insert
 
| Insert
| Procedure
 
| [[dbo.uspLogError_(procedure)|dbo.uspLogError]]
 
 
 
|}
 
|}

Please note that all contributions to dbscript Online Help may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)