Field Name | Data Type | Size | Original Type | Default | Nullable | Description | Check |
---|---|---|---|---|---|---|---|
SalesOrderID | int | Not null | Primary key. Foreign key to SalesOrderHeader.SalesOrderID. | ||||
SalesReasonID | int | Not null | Primary key. Foreign key to SalesReason.SalesReasonID. | ||||
ModifiedDate | datetime | getdate() | Not null | Date and time the record was last updated. |
The object has no extended properties.
Primary Key Name | Field Names |
---|---|
PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID | SalesOrderID, SalesReasonID |
Foreign | Primary | Key Name |
---|---|---|
SalesOrderHeaderSalesReason.SalesOrderID | SalesOrderHeader.SalesOrderID | FK_SalesOrderHeaderSalesReason_SalesOrderHeader_SalesOrderID |
SalesOrderHeaderSalesReason.SalesReasonID | SalesReason.SalesReasonID | FK_SalesOrderHeaderSalesReason_SalesReason_SalesReasonID |
Index Name | Description | Clustered | Unique | Fields |
---|---|---|---|---|
PK_SalesOrderHeaderSalesReason_SalesOrderID_SalesReasonID | Clustered index created by a primary key constraint. | Yes | Yes | SalesOrderID, SalesReasonID |
Name | Description | Type | Enabled |
---|---|---|---|
uSalesOrderHeaderSalesReason | AFTER UPDATE trigger setting the ModifiedDate column in the SalesOrderHeaderSalesReason table to the current date. | after Update | Yes |
Object Name | Type | Field Name |
---|---|---|
Sales.uSalesOrderHeaderSalesReason | trigger | N/A |