dbo.DatabaseLog Table
Description
Audit table tracking all DDL changes made to the AdventureWorks database. Data is captured by the database trigger ddlDatabaseTriggerLog.
Properties
| Creation Date | 17/07/2014 16:11 | 
| File Group | PRIMARY | 
| Text File Group | PRIMARY | 
| System Object | ![]()  | 
| Published for Replication | ![]()  | 
| Rows | 1597 | 
| Data Space Used | 6,544.00 KB | 
| Index Space Used | 56.00 KB | 
Columns
| Column Name | Description | Datatype | Length | Allow Nulls | Default | Formula | |
|---|---|---|---|---|---|---|---|
   | DatabaseLogID | Primary key for DatabaseLog records. | Integer | 4 | |||
| PostTime | The date and time the DDL change occurred. | DBTimeStamp | 4 | ||||
| DatabaseUser | The user who implemented the DDL change. | VarWChar | 128 | ||||
| Event | The type of DDL statement that was executed. | VarWChar | 128 | ||||
| Schema | The schema to which the changed object belongs. | VarWChar | 128 | ![]()  | |||
| Object | The object that was changed by the DDL statment. | VarWChar | 128 | ![]()  | |||
| TSQL | The exact Transact-SQL statement that was executed. | LongVarWChar | 16 | ||||
| XmlEvent | The raw XML data generated by database trigger. | Xml | 16 | 
Indexes
| Index | Description | Primary | Unique | 
|---|---|---|---|
| PK_DatabaseLog_DatabaseLogID | Primary key (nonclustered) constraint | ![]()  | ![]()  | 
SQL
 | 
See Also

 