Tables [dbo].[StorageErrorLog]
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_StorageErrorLog: PriKeyPriKeyint4
No
1 - 1Primary key.
Indexes IX_StorageErrorLog_SessionID: SessionIDSessionIDvarchar(50)50
No
Storage session the error occurred.
Foreign Keys FK_StorageErrorLog_Orders: [dbo].[Orders].OrdPriKeyOrdPriKeyint4
Yes
Foreign key an order.
Foreign Keys FK_StorageErrorLog_ErrorCode: [dbo].[ErrorCode].ECPriKeyECPriKeyint4
No
Foreign key to an error code.
Param1varchar(128)128
Yes
Param2varchar(128)128
Yes
Param3varchar(128)128
Yes
Param4varchar(128)128
Yes
Param5varchar(128)128
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_StorageErrorLog: PriKeyPK_StorageErrorLogPriKey
Yes
80
IX_StorageErrorLog_SessionIDSessionID80
Foreign Keys Foreign Keys
NameColumns
FK_StorageErrorLog_ErrorCodeECPriKey->[dbo].[ErrorCode].[ECPriKey]
FK_StorageErrorLog_OrdersOrdPriKey->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StorageErrorLog]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[SessionID] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[OrdPriKey] [int] NULL,
[ECPriKey] [int] NOT NULL,
[Param1] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Param2] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Param3] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Param4] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Param5] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageErrorLog] ADD CONSTRAINT [PK_StorageErrorLog] PRIMARY KEY NONCLUSTERED  ([PriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StorageErrorLog_SessionID] ON [dbo].[StorageErrorLog] ([SessionID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StorageErrorLog] ADD CONSTRAINT [FK_StorageErrorLog_ErrorCode] FOREIGN KEY ([ECPriKey]) REFERENCES [dbo].[ErrorCode] ([ECPriKey])
GO
ALTER TABLE [dbo].[StorageErrorLog] ADD CONSTRAINT [FK_StorageErrorLog_Orders] FOREIGN KEY ([OrdPriKey]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[StorageErrorLog] TO [MssExec]
GRANT INSERT ON  [dbo].[StorageErrorLog] TO [MssExec]
GRANT DELETE ON  [dbo].[StorageErrorLog] TO [MssExec]
GRANT UPDATE ON  [dbo].[StorageErrorLog] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key to an error code.', 'SCHEMA', N'dbo', 'TABLE', N'StorageErrorLog', 'COLUMN', N'ECPriKey'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Foreign key an order.', 'SCHEMA', N'dbo', 'TABLE', N'StorageErrorLog', 'COLUMN', N'OrdPriKey'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Primary key.', 'SCHEMA', N'dbo', 'TABLE', N'StorageErrorLog', 'COLUMN', N'PriKey'
GO
EXEC sp_addextendedproperty N'MS_Description', N'Storage session the error occurred. ', 'SCHEMA', N'dbo', 'TABLE', N'StorageErrorLog', 'COLUMN', N'SessionID'
GO
Uses