Tables [dbo].[WarehouseLocation]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created10:56:48 AM Monday, May 4, 2015
Last Modified10:56:49 AM Monday, May 4, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_WarehouseLocation: WarehouseLocationIDWarehouseLocationIDint4
No
1 - 1
Foreign Keys FK_WarehouseLocation_Warehouse: [dbo].[Warehouse].WarehouseFIDIndexes ix_WarehouseLocation_WarehouseID: WarehouseFIDWarehouseFIDint4
No
Locationvarchar(256)256
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_WarehouseLocation: WarehouseLocationIDPK_WarehouseLocationWarehouseLocationID
Yes
ix_WarehouseLocation_WarehouseIDWarehouseFID
Foreign Keys Foreign Keys
NameColumns
FK_WarehouseLocation_WarehouseWarehouseFID->[dbo].[Warehouse].[WarehousePriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[WarehouseLocation]
(
[WarehouseLocationID] [int] NOT NULL IDENTITY(1, 1),
[WarehouseFID] [int] NOT NULL,
[Location] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[WarehouseLocation] ADD CONSTRAINT [PK_WarehouseLocation] PRIMARY KEY CLUSTERED  ([WarehouseLocationID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ix_WarehouseLocation_WarehouseID] ON [dbo].[WarehouseLocation] ([WarehouseFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[WarehouseLocation] ADD CONSTRAINT [FK_WarehouseLocation_Warehouse] FOREIGN KEY ([WarehouseFID]) REFERENCES [dbo].[Warehouse] ([WarehousePriKey])
GO
GRANT SELECT ON  [dbo].[WarehouseLocation] TO [MssExec]
GRANT INSERT ON  [dbo].[WarehouseLocation] TO [MssExec]
GRANT DELETE ON  [dbo].[WarehouseLocation] TO [MssExec]
GRANT UPDATE ON  [dbo].[WarehouseLocation] TO [MssExec]
GO
Uses