Tables [dbo].[Payments]
Properties
PropertyValue
Row Count (~)0
Created4:57:09 PM Thursday, September 7, 2006
Last Modified11:13:41 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_Payments: PaymentPriKeyPaymentPriKeyint4
No
1 - 1
Foreign Keys FK_Payments_BillingMinorItem: [dbo].[BillingMinorItem].BMinPriKeyIndexes IX_Payments_BMinPriKey: BMinPriKeyBMinPriKeyint4
Yes
PaymentDatedatetime8
Yes
PaymentAmountmoney8
Yes
Foreign Keys FK_Payments_StatementDetail: [dbo].[StatementDetail].SDPriKeyIndexes IX_Payments_SDPriKey: SDPriKeySDPriKeyint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_Payments: PaymentPriKeyPK_PaymentsPaymentPriKey
Yes
80
IX_Payments_BMinPriKeyBMinPriKey80
IX_Payments_SDPriKeySDPriKey80
Foreign Keys Foreign Keys
NameColumns
FK_Payments_BillingMinorItemBMinPriKey->[dbo].[BillingMinorItem].[BMinPriKey]
FK_Payments_StatementDetailSDPriKey->[dbo].[StatementDetail].[SDPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[Payments]
(
[PaymentPriKey] [int] NOT NULL IDENTITY(1, 1),
[BMinPriKey] [int] NULL,
[PaymentDate] [datetime] NULL,
[PaymentAmount] [money] NULL,
[SDPriKey] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Payments] ADD CONSTRAINT [PK_Payments] PRIMARY KEY CLUSTERED  ([PaymentPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_Payments_BMinPriKey] ON [dbo].[Payments] ([BMinPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_Payments_SDPriKey] ON [dbo].[Payments] ([SDPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Payments] ADD CONSTRAINT [FK_Payments_BillingMinorItem] FOREIGN KEY ([BMinPriKey]) REFERENCES [dbo].[BillingMinorItem] ([BMinPriKey])
GO
ALTER TABLE [dbo].[Payments] ADD CONSTRAINT [FK_Payments_StatementDetail] FOREIGN KEY ([SDPriKey]) REFERENCES [dbo].[StatementDetail] ([SDPriKey])
GO
GRANT SELECT ON  [dbo].[Payments] TO [MssExec]
GRANT INSERT ON  [dbo].[Payments] TO [MssExec]
GRANT DELETE ON  [dbo].[Payments] TO [MssExec]
GRANT UPDATE ON  [dbo].[Payments] TO [MssExec]
GO
Uses