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

From dbscript Online Help
Jump to: navigation, search
Line 98: Line 98:
 
| '''Description / PK / Index
 
| '''Description / PK / Index
 
 
|-
+
|- valign="top"
 
| DatabaseLogID
 
| DatabaseLogID
 
| int
 
| int
Line 104: Line 104:
 
|  
 
|  
 
| Primary key for DatabaseLog records.PK_DatabaseLog_DatabaseLogID
 
| Primary key for DatabaseLog records.PK_DatabaseLog_DatabaseLogID
|-
+
|- valign="top"
 
| PostTime
 
| PostTime
 
| datetime
 
| datetime
Line 110: Line 110:
 
|  
 
|  
 
| The date and time the DDL change occurred.
 
| The date and time the DDL change occurred.
|-
+
|- valign="top"
 
| DatabaseUser
 
| DatabaseUser
 
| sysname
 
| sysname
Line 116: Line 116:
 
|  
 
|  
 
| The user who implemented the DDL change.
 
| The user who implemented the DDL change.
|-
+
|- valign="top"
 
| Event
 
| Event
 
| sysname
 
| sysname
Line 122: Line 122:
 
|  
 
|  
 
| The type of DDL statement that was executed.
 
| The type of DDL statement that was executed.
|-
+
|- valign="top"
 
| Schema
 
| Schema
 
| sysname
 
| sysname
Line 128: Line 128:
 
|  
 
|  
 
| The schema to which the changed object belongs.
 
| The schema to which the changed object belongs.
|-
+
|- valign="top"
 
| Object
 
| Object
 
| sysname
 
| sysname
Line 134: Line 134:
 
|  
 
|  
 
| The object that was changed by the DDL statment.
 
| The object that was changed by the DDL statment.
|-
+
|- valign="top"
 
| TSQL
 
| TSQL
 
| nvarchar(max)
 
| nvarchar(max)
Line 140: Line 140:
 
|  
 
|  
 
| The exact Transact-SQL statement that was executed.
 
| The exact Transact-SQL statement that was executed.
|-
+
|- valign="top"
 
| XmlEvent
 
| XmlEvent
 
| xml
 
| xml

Revision as of 23:56, 26 November 2009

wikibot

Table dbo.DatabaseLog


Column Data Type Nullable Default PK Index
DatabaseLogID int not null PK_DatabaseLog_DatabaseLogID
PostTime datetime not null
DatabaseUser sysname not null
Event sysname not null
Schema sysname null
Object sysname null
TSQL nvarchar(max) not null
XmlEvent xml not null

automatically generated

Table dbo.DatabaseLog
Description Audit table tracking all DDL changes made to the AdventureWorks database. Data is captured by the database trigger ddlDatabaseTriggerLog.


Column Data Type Nullable Default Description / PK / Index
DatabaseLogID int not null Primary key for DatabaseLog records.PK_DatabaseLog_DatabaseLogID
PostTime datetime not null The date and time the DDL change occurred.
DatabaseUser sysname not null The user who implemented the DDL change.
Event sysname not null The type of DDL statement that was executed.
Schema sysname null The schema to which the changed object belongs.
Object sysname null The object that was changed by the DDL statment.
TSQL nvarchar(max) not null The exact Transact-SQL statement that was executed.
XmlEvent xml not null The raw XML data generated by database trigger.


Referencing Object Object Type Reference Type
.ddlDatabaseTriggerLog Database Trigger Insert