Tables [dbo].[OrderLocationBuildingConstraint]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:02:24 AM Friday, December 7, 2018
Last Modified9:14:56 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_OrderLocationBuildingConstraint: OrderLocationBuildingConstraintIDOrderLocationBuildingConstraintIDint4
No
1 - 1
Foreign Keys FK_OrderLocationBuildingConstraint_OrderLocation: [dbo].[OrderLocations].OrderLocationFIDIndexes IX_OrderLocationBuildingConstraintFID_OrderLocationBuildingConstraintItemFID: OrderLocationFID\BuildingConstraintItemFIDOrderLocationFIDint4
No
Foreign Keys FK_OrderLocationBuildingConstraint_Order: [dbo].[BuildingConstraintItems].BuildingConstraintItemFIDIndexes IX_OrderLocationBuildingConstraintFID_OrderLocationBuildingConstraintItemFID: OrderLocationFID\BuildingConstraintItemFIDBuildingConstraintItemFIDint4
No
ConstraintFlagbit1
No
((0))
Notevarchar(64)64
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OrderLocationBuildingConstraint: OrderLocationBuildingConstraintIDPK_OrderLocationBuildingConstraintOrderLocationBuildingConstraintID
Yes
IX_OrderLocationBuildingConstraintFID_OrderLocationBuildingConstraintItemFIDOrderLocationFID, BuildingConstraintItemFID
Foreign Keys Foreign Keys
NameColumns
FK_OrderLocationBuildingConstraint_OrderBuildingConstraintItemFID->[dbo].[BuildingConstraintItems].[BuildingConstraintItemID]
FK_OrderLocationBuildingConstraint_OrderLocationOrderLocationFID->[dbo].[OrderLocations].[OrderLocationID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[OrderLocationBuildingConstraint]
(
[OrderLocationBuildingConstraintID] [int] NOT NULL IDENTITY(1, 1),
[OrderLocationFID] [int] NOT NULL,
[BuildingConstraintItemFID] [int] NOT NULL,
[ConstraintFlag] [bit] NOT NULL CONSTRAINT [DF_OrderLocationBuildingConstraint_ContraintFlag] DEFAULT ((0)),
[Note] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderLocationBuildingConstraint] ADD CONSTRAINT [PK_OrderLocationBuildingConstraint] PRIMARY KEY CLUSTERED  ([OrderLocationBuildingConstraintID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_OrderLocationBuildingConstraintFID_OrderLocationBuildingConstraintItemFID] ON [dbo].[OrderLocationBuildingConstraint] ([OrderLocationFID], [BuildingConstraintItemFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderLocationBuildingConstraint] ADD CONSTRAINT [FK_OrderLocationBuildingConstraint_Order] FOREIGN KEY ([BuildingConstraintItemFID]) REFERENCES [dbo].[BuildingConstraintItems] ([BuildingConstraintItemID])
GO
ALTER TABLE [dbo].[OrderLocationBuildingConstraint] ADD CONSTRAINT [FK_OrderLocationBuildingConstraint_OrderLocation] FOREIGN KEY ([OrderLocationFID]) REFERENCES [dbo].[OrderLocations] ([OrderLocationID])
GO
GRANT SELECT ON  [dbo].[OrderLocationBuildingConstraint] TO [MssExec]
GRANT INSERT ON  [dbo].[OrderLocationBuildingConstraint] TO [MssExec]
GRANT DELETE ON  [dbo].[OrderLocationBuildingConstraint] TO [MssExec]
GRANT UPDATE ON  [dbo].[OrderLocationBuildingConstraint] TO [MssExec]
GO
Uses
Used By