Difference between revisions of "Dbo.DatabaseLog (table)"
Line 12: | Line 12: | ||
+ | === 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 18: | Line 19: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
− | | '''Description | + | | '''Description |
|- valign="top" | |- valign="top" | ||
Line 25: | Line 26: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for DatabaseLog records. | + | | Primary key for DatabaseLog records. |
|- valign="top" | |- valign="top" | ||
| PostTime | | PostTime | ||
Line 31: | Line 32: | ||
| not null | | not null | ||
| | | | ||
− | | The date and time the DDL change occurred. | + | | The date and time the DDL change occurred. |
|- valign="top" | |- valign="top" | ||
| DatabaseUser | | DatabaseUser | ||
Line 37: | Line 38: | ||
| not null | | not null | ||
| | | | ||
− | | The user who implemented the DDL change. | + | | The user who implemented the DDL change. |
|- valign="top" | |- valign="top" | ||
| Event | | Event | ||
Line 43: | Line 44: | ||
| not null | | not null | ||
| | | | ||
− | | The type of DDL statement that was executed. | + | | The type of DDL statement that was executed. |
|- valign="top" | |- valign="top" | ||
| Schema | | Schema | ||
Line 49: | Line 50: | ||
| null | | null | ||
| | | | ||
− | | The schema to which the changed object belongs. | + | | The schema to which the changed object belongs. |
|- valign="top" | |- valign="top" | ||
| Object | | Object | ||
Line 55: | Line 56: | ||
| null | | null | ||
| | | | ||
− | | The object that was changed by the DDL statment. | + | | The object that was changed by the DDL statment. |
|- valign="top" | |- valign="top" | ||
| TSQL | | TSQL | ||
Line 61: | Line 62: | ||
| not null | | not null | ||
| | | | ||
− | | The exact Transact-SQL statement that was executed. | + | | The exact Transact-SQL statement that was executed. |
|- valign="top" | |- valign="top" | ||
| XmlEvent | | XmlEvent | ||
Line 67: | Line 68: | ||
| not null | | not null | ||
| | | | ||
− | | The raw XML data generated by database trigger. | + | | The raw XML data generated by database trigger. |
|} | |} | ||
+ | === Primary Key === | ||
+ | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
+ | |- style="background:silver" | ||
+ | | '''Primary Key | ||
+ | | '''Columns | ||
+ | |- | ||
+ | | PK_DatabaseLog_DatabaseLogID | ||
+ | | DatabaseLogID | ||
+ | |} | ||
− | + | === Dependencies === | |
{| 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 84: | Line 94: | ||
|} | |} | ||
− | |||
Revision as of 23:05, 2 February 2010
wikibot
Table | dbo.DatabaseLog |
Description | Audit table tracking all DDL changes made to the AdventureWorks database. Data is captured by the database trigger ddlDatabaseTriggerLog. |
Columns
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
Primary Key | Columns |
PK_DatabaseLog_DatabaseLogID | DatabaseLogID |
Dependencies
Reference Type | Object Type | Referencing Object |
Insert | Database Trigger | ddlDatabaseTriggerLog |
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. |
Reference Type | Object Type | Referencing Object |
Insert | Database Trigger | ddlDatabaseTriggerLog |