Tables [dbo].[OrderHistoryField]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)123
Created3:42:53 PM Thursday, December 6, 2018
Last Modified3:48:23 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_OrderHistoryField: OrderHistoryFieldIDOrderHistoryFieldIDint4
No
1 - 1
Indexes IX_OrderHistoryField_FieldName_TableType: FieldName\TableTypeFieldNamevarchar(128)128
No
DisplayNamevarchar(128)128
No
Foreign Keys FK_OrderHistoryField_OrderHistoryFieldType: [dbo].[OrderHistoryFieldType].OrderHistoryFieldTypeFIDOrderHistoryFieldTypeFIDint4
No
Indexes IX_OrderHistoryField_FieldName_TableType: FieldName\TableTypeTableTypevarchar(64)64
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OrderHistoryField: OrderHistoryFieldIDPK_OrderHistoryFieldOrderHistoryFieldID
Yes
IX_OrderHistoryField_FieldName_TableTypeFieldName, TableType
Yes
Foreign Keys Foreign Keys
NameColumns
FK_OrderHistoryField_OrderHistoryFieldTypeOrderHistoryFieldTypeFID->[dbo].[OrderHistoryFieldType].[OrderHistoryFieldTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OrderHistoryField]
(
[OrderHistoryFieldID] [int] NOT NULL IDENTITY(1, 1),
[FieldName] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DisplayName] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[OrderHistoryFieldTypeFID] [int] NOT NULL,
[TableType] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderHistoryField] ADD CONSTRAINT [PK_OrderHistoryField] PRIMARY KEY CLUSTERED  ([OrderHistoryFieldID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_OrderHistoryField_FieldName_TableType] ON [dbo].[OrderHistoryField] ([FieldName], [TableType]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderHistoryField] ADD CONSTRAINT [FK_OrderHistoryField_OrderHistoryFieldType] FOREIGN KEY ([OrderHistoryFieldTypeFID]) REFERENCES [dbo].[OrderHistoryFieldType] ([OrderHistoryFieldTypeID])
GO
GRANT SELECT ON  [dbo].[OrderHistoryField] TO [MssExec]
GRANT INSERT ON  [dbo].[OrderHistoryField] TO [MssExec]
GRANT DELETE ON  [dbo].[OrderHistoryField] TO [MssExec]
GRANT UPDATE ON  [dbo].[OrderHistoryField] TO [MssExec]
GO
Uses
Used By