Tables [dbo].[StorageItemType]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)11
Created4:57:09 PM Thursday, September 7, 2006
Last Modified11:13:43 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDescription
Primary Key PK_StorageItemType: StorageItemTypePriKeyStorageItemTypePriKeyint4
No
1 - 1Primary key.
Indexes IX_StorageItemType_Description: DescriptionDescriptionvarchar(128)128
No
Description of the item code.
Foreign Keys FK_StorageItemType_ItemCode: [dbo].[ItemCode].ICPriKeyICPriKeyint4
No
Foreign key to an item code.
MinimumStorageFeemoney8
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_StorageItemType: StorageItemTypePriKeyPK_StorageItemTypeStorageItemTypePriKey
Yes
80
IX_StorageItemType_DescriptionDescription
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_StorageItemType_ItemCodeICPriKey->[dbo].[ItemCode].[ICPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StorageItemType]
(
[StorageItemTypePriKey] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ICPriKey] [int] NOT NULL,
[MinimumStorageFee] [money] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageItemType] ADD CONSTRAINT [PK_StorageItemType] PRIMARY KEY NONCLUSTERED  ([StorageItemTypePriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageItemType] ADD CONSTRAINT [IX_StorageItemType_Description] UNIQUE NONCLUSTERED  ([Description]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageItemType] ADD CONSTRAINT [FK_StorageItemType_ItemCode] FOREIGN KEY ([ICPriKey]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
GRANT SELECT ON  [dbo].[StorageItemType] TO [MssExec]
GRANT INSERT ON  [dbo].[StorageItemType] TO [MssExec]
GRANT DELETE ON  [dbo].[StorageItemType] TO [MssExec]
GRANT UPDATE ON  [dbo].[StorageItemType] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Description of the item code.', 'SCHEMA', N'dbo', 'TABLE', N'StorageItemType', 'COLUMN', N'Description'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key to an item code.', 'SCHEMA', N'dbo', 'TABLE', N'StorageItemType', 'COLUMN', N'ICPriKey'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key.', 'SCHEMA', N'dbo', 'TABLE', N'StorageItemType', 'COLUMN', N'StorageItemTypePriKey'
GO
Uses
Used By