Tables [dbo].[Warehouse]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)33
Created4:57:08 PM Thursday, September 7, 2006
Last Modified10:56:49 AM Monday, May 4, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_Warehouse: WarehousePriKeyWarehousePriKeyint4
No
1 - 1
Indexes IX_Warehouse: WarehouseNameWarehouseNamevarchar(30)30
No
Foreign Keys FK_Warehouse_Branch: [dbo].[Branch].BranchPriKeyBranchPriKeyint4
No
RecurringBillingAvailabilityFlagbit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_Warehouse: WarehousePriKeyPK_WarehouseWarehousePriKey
Yes
80
IX_WarehouseWarehouseName
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_Warehouse_BranchBranchPriKey->[dbo].[Branch].[BranchPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[Warehouse]
(
[WarehousePriKey] [int] NOT NULL IDENTITY(1, 1),
[WarehouseName] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[BranchPriKey] [int] NOT NULL,
[RecurringBillingAvailabilityFlag] [bit] NOT NULL CONSTRAINT [DF_Warehouse_RecurringBillingAvailabilityFlag] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Warehouse] ADD CONSTRAINT [PK_Warehouse] PRIMARY KEY CLUSTERED  ([WarehousePriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Warehouse] ADD CONSTRAINT [IX_Warehouse] UNIQUE NONCLUSTERED  ([WarehouseName]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Warehouse] ADD CONSTRAINT [FK_Warehouse_Branch] FOREIGN KEY ([BranchPriKey]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
GRANT SELECT ON  [dbo].[Warehouse] TO [MssExec]
GRANT INSERT ON  [dbo].[Warehouse] TO [MssExec]
GRANT DELETE ON  [dbo].[Warehouse] TO [MssExec]
GRANT UPDATE ON  [dbo].[Warehouse] TO [MssExec]
GO
Uses
Used By