Current version number of the AdventureWorks 2016 sample database.
| Indexes | Field Name | Data Type | Description |
|---|---|---|---|
| * | SystemInformationID | tinyint AUTOINCREMENT | Primary key for AWBuildVersion records. |
| * | Database Version | nvarchar( 25 ) | Version number of the database in 9.yy.mm.dd.00 format. |
| * | VersionDate | datetime | Date and time the record was last updated. |
| * | ModifiedDate | datetime DEFAULT getdate() | Date and time the record was last updated. |
| Indexes | |||
| PK_AWBuildVersion_SystemInformationID | ON SystemInformationID | Clustered index created by a primary key constraint. | |
Audit table tracking all DDL changes made to the AdventureWorks database. Data is captured by the database trigger ddlDatabaseTriggerLog.
| Indexes | Field Name | Data Type | Description |
|---|---|---|---|
| * | DatabaseLogID | int AUTOINCREMENT | Primary key for DatabaseLog records. |
| * | PostTime | datetime | The date and time the DDL change occurred. |
| * | DatabaseUser | sysname | The user who implemented the DDL change. |
| * | Event | sysname | The type of DDL statement that was executed. |
| Schema | sysname | The schema to which the changed object belongs. | |
| Object | sysname | The object that was changed by the DDL statment. | |
| * | TSQL | nvarchar(max) | The exact Transact-SQL statement that was executed. |
| * | XmlEvent | xml | The raw XML data generated by database trigger. |
| Indexes | |||
| PK_DatabaseLog_DatabaseLogID | ON DatabaseLogID | Nonclustered index created by a primary key constraint. | |
Audit table tracking errors in the the AdventureWorks database that are caught by the CATCH block of a TRY...CATCH construct. Data is inserted by stored procedure dbo.uspLogError when it is executed from inside the CATCH block of a TRY...CATCH construct.
| Indexes | Field Name | Data Type | Description |
|---|---|---|---|
| * | ErrorLogID | int AUTOINCREMENT | Primary key for ErrorLog records. |
| * | ErrorTime | datetime DEFAULT getdate() | The date and time at which the error occurred. |
| * | UserName | sysname | The user who executed the batch in which the error occurred. |
| * | ErrorNumber | int | The error number of the error that occurred. |
| ErrorSeverity | int | The severity of the error that occurred. | |
| ErrorState | int | The state number of the error that occurred. | |
| ErrorProcedure | nvarchar( 126 ) | The name of the stored procedure or trigger where the error occurred. | |
| ErrorLine | int | The line number at which the error occurred. | |
| * | ErrorMessage | nvarchar( 4000 ) | The message text of the error that occurred. |
| Indexes | |||
| PK_ErrorLog_ErrorLogID | ON ErrorLogID | Clustered index created by a primary key constraint. | |