Difference between revisions of "Dbo.DatabaseLog (table)"
(One intermediate revision by the same user not shown) | |||
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.DatabaseLog | | dbo.DatabaseLog | ||
Line 8: | Line 8: | ||
| '''Description | | '''Description | ||
| Audit table tracking all DDL changes made to the AdventureWorks database. Data is captured by the database trigger ddlDatabaseTriggerLog. | | Audit table tracking all DDL changes made to the AdventureWorks database. Data is captured by the database trigger ddlDatabaseTriggerLog. | ||
− | |||
|} | |} | ||
− | |||
=== Columns === | === Columns === | ||
Line 20: | Line 18: | ||
| '''Default | | '''Default | ||
| '''Description | | '''Description | ||
− | + | ||
|- valign="top" | |- valign="top" | ||
| DatabaseLogID | | DatabaseLogID | ||
Line 76: | Line 74: | ||
| '''Primary Key | | '''Primary Key | ||
| '''Columns | | '''Columns | ||
− | |- | + | |- valign="top" |
| PK_DatabaseLog_DatabaseLogID | | PK_DatabaseLog_DatabaseLogID | ||
| DatabaseLogID | | DatabaseLogID | ||
Line 88: | Line 86: | ||
| '''Referencing Object | | '''Referencing Object | ||
− | |- | + | |- valign="top" |
| Insert | | Insert | ||
| Database Trigger | | Database Trigger | ||
− | | [[ddlDatabaseTriggerLog_( | + | | [[ddlDatabaseTriggerLog_(database trigger)|ddlDatabaseTriggerLog]] |
|} | |} |
Latest revision as of 23:15, 23 June 2010
wikibot[edit]
Table | dbo.DatabaseLog |
Description | Audit table tracking all DDL changes made to the AdventureWorks database. Data is captured by the database trigger ddlDatabaseTriggerLog. |
Columns[edit]
Column | Data Type | Nullable | Default | Description |
DatabaseLogID | int | not null | Primary key for DatabaseLog records. | |
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. |
Primary Key[edit]
Primary Key | Columns |
PK_DatabaseLog_DatabaseLogID | DatabaseLogID |
Dependencies[edit]
Reference Type | Object Type | Referencing Object |
Insert | Database Trigger | ddlDatabaseTriggerLog |
automatically generated[edit]
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. |
Reference Type | Object Type | Referencing Object |
Insert | Database Trigger | ddlDatabaseTriggerLog |