Tables [dbo].[StorageProcessBilling]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
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_StorageProcessBilling: PriKeyPriKeyint4
No
1 - 1Primary key.
Foreign Keys FK_StorageProcessBilling_StorageType: [dbo].[StorageType].StorageTypePriKeyStorageTypePriKeyint4
No
Foreign key to a storage type.
Indexes IX_StorageProcessBilling_SessionID: SessionIDSessionIDvarchar(50)50
No
Session id of the storage type and branch.
BillingStatusvarchar(50)50
No
The level (stored procedure) an error occurred during billing.
Foreign Keys FK_StorageProcessBilling_Branch: [dbo].[Branch].BranchPriKeyBranchPriKeyint4
No
Foreign key to a branch.
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_StorageProcessBilling: PriKeyPK_StorageProcessBillingPriKey
Yes
80
IX_StorageProcessBilling_SessionIDSessionID80
Foreign Keys Foreign Keys
NameColumns
FK_StorageProcessBilling_BranchBranchPriKey->[dbo].[Branch].[BranchPriKey]
FK_StorageProcessBilling_StorageTypeStorageTypePriKey->[dbo].[StorageType].[StorageTypePriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StorageProcessBilling]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[StorageTypePriKey] [int] NOT NULL,
[SessionID] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[BillingStatus] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[BranchPriKey] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageProcessBilling] ADD CONSTRAINT [PK_StorageProcessBilling] PRIMARY KEY NONCLUSTERED  ([PriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StorageProcessBilling_SessionID] ON [dbo].[StorageProcessBilling] ([SessionID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageProcessBilling] ADD CONSTRAINT [FK_StorageProcessBilling_Branch] FOREIGN KEY ([BranchPriKey]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
ALTER TABLE [dbo].[StorageProcessBilling] ADD CONSTRAINT [FK_StorageProcessBilling_StorageType] FOREIGN KEY ([StorageTypePriKey]) REFERENCES [dbo].[StorageType] ([StorageTypePriKey])
GO
GRANT SELECT ON  [dbo].[StorageProcessBilling] TO [MssExec]
GRANT INSERT ON  [dbo].[StorageProcessBilling] TO [MssExec]
GRANT DELETE ON  [dbo].[StorageProcessBilling] TO [MssExec]
GRANT UPDATE ON  [dbo].[StorageProcessBilling] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'The level (stored procedure) an error occurred during billing. ', 'SCHEMA', N'dbo', 'TABLE', N'StorageProcessBilling', 'COLUMN', N'BillingStatus'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key to a branch.', 'SCHEMA', N'dbo', 'TABLE', N'StorageProcessBilling', 'COLUMN', N'BranchPriKey'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key.', 'SCHEMA', N'dbo', 'TABLE', N'StorageProcessBilling', 'COLUMN', N'PriKey'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Session id of the storage type and branch.', 'SCHEMA', N'dbo', 'TABLE', N'StorageProcessBilling', 'COLUMN', N'SessionID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key to a storage type.', 'SCHEMA', N'dbo', 'TABLE', N'StorageProcessBilling', 'COLUMN', N'StorageTypePriKey'
GO
Uses