Tables [dbo].[BATErrorLog]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)1
Created4:57:06 PM Thursday, September 7, 2006
Last Modified11:13:37 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_BATErrorLog: BATErrorPriKeyBATErrorPriKeyint4
No
1 - 1
Sourcevarchar(50)50
Yes
SourcePriKeyint4
Yes
Foreign Keys FK_BATErrorLog_ErrorCode: [dbo].[ErrorCode].ECPriKeyECPriKeyint4
Yes
Objectvarchar(20)20
Yes
ObjectPriKeyint4
Yes
Param1varchar(128)128
Yes
Param2varchar(128)128
Yes
Param3varchar(128)128
Yes
Param4varchar(128)128
Yes
Param5varchar(128)128
Yes
SessionIDvarchar(50)50
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_BATErrorLog: BATErrorPriKeyPK_BATErrorLogBATErrorPriKey
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_BATErrorLog_ErrorCodeECPriKey->[dbo].[ErrorCode].[ECPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[BATErrorLog]
(
[BATErrorPriKey] [int] NOT NULL IDENTITY(1, 1),
[Source] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SourcePriKey] [int] NULL,
[ECPriKey] [int] NULL,
[Object] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ObjectPriKey] [int] 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,
[SessionID] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BATErrorLog] ADD CONSTRAINT [PK_BATErrorLog] PRIMARY KEY CLUSTERED  ([BATErrorPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BATErrorLog] ADD CONSTRAINT [FK_BATErrorLog_ErrorCode] FOREIGN KEY ([ECPriKey]) REFERENCES [dbo].[ErrorCode] ([ECPriKey])
GO
GRANT SELECT ON  [dbo].[BATErrorLog] TO [MssExec]
GRANT INSERT ON  [dbo].[BATErrorLog] TO [MssExec]
GRANT DELETE ON  [dbo].[BATErrorLog] TO [MssExec]
GRANT UPDATE ON  [dbo].[BATErrorLog] TO [MssExec]
GO
Uses