Tables [dbo].[StatementChargeBack]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)5758
Created4:57:09 PM Thursday, September 7, 2006
Last Modified2:15:31 PM Monday, February 3, 2014
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_StatementChargeBack: SCBPriKeySCBPriKeyint4
No
1 - 1
Foreign Keys FK_StatementChargeBack_StatementDetail: [dbo].[StatementDetail].SDPriKeyIndexes IX_StatementChargeBack: SDPriKeySDPriKeyint4
No
NewCustomerNumbervarchar(15)15
Yes
NewCustomerARAccountvarchar(66)66
Yes
ChargeBackBalancemoney8
Yes
Foreign Keys FK_StatementChargeBack_StatementDetailDist: [dbo].[StatementDetailDist].SDDPriKeySDDPriKeyint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_StatementChargeBack: SCBPriKeyPK_StatementChargeBackSCBPriKey
Yes
80
IX_StatementChargeBackSDPriKey80
Foreign Keys Foreign Keys
NameColumns
FK_StatementChargeBack_StatementDetailDistSDDPriKey->[dbo].[StatementDetailDist].[SDDPriKey]
FK_StatementChargeBack_StatementDetailSDPriKey->[dbo].[StatementDetail].[SDPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[StatementChargeBack]
(
[SCBPriKey] [int] NOT NULL IDENTITY(1, 1),
[SDPriKey] [int] NOT NULL,
[NewCustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[NewCustomerARAccount] [varchar] (66) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ChargeBackBalance] [money] NULL,
[SDDPriKey] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementChargeBack] ADD CONSTRAINT [PK_StatementChargeBack] PRIMARY KEY CLUSTERED  ([SCBPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_StatementChargeBack] ON [dbo].[StatementChargeBack] ([SDPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[StatementChargeBack] ADD CONSTRAINT [FK_StatementChargeBack_StatementDetailDist] FOREIGN KEY ([SDDPriKey]) REFERENCES [dbo].[StatementDetailDist] ([SDDPriKey])
GO
ALTER TABLE [dbo].[StatementChargeBack] ADD CONSTRAINT [FK_StatementChargeBack_StatementDetail] FOREIGN KEY ([SDPriKey]) REFERENCES [dbo].[StatementDetail] ([SDPriKey])
GO
GRANT SELECT ON  [dbo].[StatementChargeBack] TO [MssExec]
GRANT INSERT ON  [dbo].[StatementChargeBack] TO [MssExec]
GRANT DELETE ON  [dbo].[StatementChargeBack] TO [MssExec]
GRANT UPDATE ON  [dbo].[StatementChargeBack] TO [MssExec]
GO
Uses