Difference between revisions of "Dbo.DatabaseLog (table)"
Line 103: | Line 103: | ||
| not null | | not null | ||
| | | | ||
− | | Primary key for DatabaseLog records.PK_DatabaseLog_DatabaseLogID | + | | Primary key for DatabaseLog records.<br />PK_DatabaseLog_DatabaseLogID |
|- valign="top" | |- valign="top" | ||
| PostTime | | PostTime | ||
Line 109: | Line 109: | ||
| not null | | not null | ||
| | | | ||
− | | The date and time the DDL change occurred. | + | | The date and time the DDL change occurred.<br /> |
|- valign="top" | |- valign="top" | ||
| DatabaseUser | | DatabaseUser | ||
Line 115: | Line 115: | ||
| not null | | not null | ||
| | | | ||
− | | The user who implemented the DDL change. | + | | The user who implemented the DDL change.<br /> |
|- valign="top" | |- valign="top" | ||
| Event | | Event | ||
Line 121: | Line 121: | ||
| not null | | not null | ||
| | | | ||
− | | The type of DDL statement that was executed. | + | | The type of DDL statement that was executed.<br /> |
|- valign="top" | |- valign="top" | ||
| Schema | | Schema | ||
Line 127: | Line 127: | ||
| null | | null | ||
| | | | ||
− | | The schema to which the changed object belongs. | + | | The schema to which the changed object belongs.<br /> |
|- valign="top" | |- valign="top" | ||
| Object | | Object | ||
Line 133: | Line 133: | ||
| null | | null | ||
| | | | ||
− | | The object that was changed by the DDL statment. | + | | The object that was changed by the DDL statment.<br /> |
|- valign="top" | |- valign="top" | ||
| TSQL | | TSQL | ||
Line 139: | Line 139: | ||
| not null | | not null | ||
| | | | ||
− | | The exact Transact-SQL statement that was executed. | + | | The exact Transact-SQL statement that was executed.<br /> |
|- valign="top" | |- valign="top" | ||
| XmlEvent | | XmlEvent | ||
Line 145: | Line 145: | ||
| not null | | not null | ||
| | | | ||
− | | The raw XML data generated by database trigger. | + | | The raw XML data generated by database trigger.<br /> |
|} | |} | ||
Revision as of 00:09, 27 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 |