Tables [dbo].[StorageInvoice]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)16885
Created4:57:09 PM Thursday, September 7, 2006
Last Modified7:17:39 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDescription
Primary Key PK_StorageInvoice: StorageInvoicePriKeyStorageInvoicePriKeyint4
No
1 - 1Primary key.
Foreign Keys FK_StorageInvoice_InvoicedHeader: [dbo].[InvoicedHeader].IHPriKeyIndexes IX_StorageInvoice_IHPriKey: IHPriKeyIHPriKeyint4
No
Foreign key to an invoiced header.
Indexes IX_StorageInvoice_SessionID: SessionIDSessionIDvarchar(50)50
No
The session of storage invoices.
Foreign Keys FK_StorageInvoice_StorageFID: [dbo].[Storage].StorageFIDStorageFIDint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_StorageInvoice: StorageInvoicePriKeyPK_StorageInvoiceStorageInvoicePriKey
Yes
80
IX_StorageInvoice_IHPriKeyIHPriKey
Yes
80
IX_StorageInvoice_SessionIDSessionID80
Foreign Keys Foreign Keys
NameColumns
FK_StorageInvoice_InvoicedHeaderIHPriKey->[dbo].[InvoicedHeader].[IHPriKey]
FK_StorageInvoice_StorageFIDStorageFID->[dbo].[Storage].[StoragePriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StorageInvoice]
(
[StorageInvoicePriKey] [int] NOT NULL IDENTITY(1, 1),
[IHPriKey] [int] NOT NULL,
[SessionID] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[StorageFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageInvoice] ADD CONSTRAINT [PK_StorageInvoice] PRIMARY KEY NONCLUSTERED  ([StorageInvoicePriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageInvoice] ADD CONSTRAINT [IX_StorageInvoice_IHPriKey] UNIQUE NONCLUSTERED  ([IHPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StorageInvoice_SessionID] ON [dbo].[StorageInvoice] ([SessionID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageInvoice] ADD CONSTRAINT [FK_StorageInvoice_InvoicedHeader] FOREIGN KEY ([IHPriKey]) REFERENCES [dbo].[InvoicedHeader] ([IHPriKey])
GO
ALTER TABLE [dbo].[StorageInvoice] ADD CONSTRAINT [FK_StorageInvoice_StorageFID] FOREIGN KEY ([StorageFID]) REFERENCES [dbo].[Storage] ([StoragePriKey])
GO
GRANT SELECT ON  [dbo].[StorageInvoice] TO [MssExec]
GRANT INSERT ON  [dbo].[StorageInvoice] TO [MssExec]
GRANT DELETE ON  [dbo].[StorageInvoice] TO [MssExec]
GRANT UPDATE ON  [dbo].[StorageInvoice] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key to an invoiced header.', 'SCHEMA', N'dbo', 'TABLE', N'StorageInvoice', 'COLUMN', N'IHPriKey'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The session of storage invoices.', 'SCHEMA', N'dbo', 'TABLE', N'StorageInvoice', 'COLUMN', N'SessionID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key.', 'SCHEMA', N'dbo', 'TABLE', N'StorageInvoice', 'COLUMN', N'StorageInvoicePriKey'
GO
Uses
Used By