Tables [dbo].[ThirdPartyCalculation]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created10:38:45 AM Monday, March 30, 2015
Last Modified10:38:45 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ThirdPartyCalculation: ThirdPartyCalculationIDThirdPartyCalculationIDint4
No
1 - 1
Cluster Key IX_ThirdPartyCalculation_ThirdPartyID: ThirdPartyFIDForeign Keys FK_ThirdPartyCalculation_ThirdParty: [dbo].[ThirdParty].ThirdPartyFIDThirdPartyFIDint4
No
Descriptionvarchar(256)256
Yes
Amountvarchar(32)32
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_ThirdPartyCalculation: ThirdPartyCalculationIDPK_ThirdPartyCalculationThirdPartyCalculationID
Yes
Cluster Key IX_ThirdPartyCalculation_ThirdPartyID: ThirdPartyFIDIX_ThirdPartyCalculation_ThirdPartyIDThirdPartyFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_ThirdPartyCalculation_ThirdPartyCascadeThirdPartyFID->[dbo].[ThirdParty].[TPPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ThirdPartyCalculation]
(
[ThirdPartyCalculationID] [int] NOT NULL IDENTITY(1, 1),
[ThirdPartyFID] [int] NOT NULL,
[Description] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Amount] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ThirdPartyCalculation] ADD CONSTRAINT [PK_ThirdPartyCalculation] PRIMARY KEY NONCLUSTERED  ([ThirdPartyCalculationID]) ON [PRIMARY]
GO
CREATE CLUSTERED INDEX [IX_ThirdPartyCalculation_ThirdPartyID] ON [dbo].[ThirdPartyCalculation] ([ThirdPartyFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ThirdPartyCalculation] ADD CONSTRAINT [FK_ThirdPartyCalculation_ThirdParty] FOREIGN KEY ([ThirdPartyFID]) REFERENCES [dbo].[ThirdParty] ([TPPriKey]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[ThirdPartyCalculation] TO [MssExec]
GRANT INSERT ON  [dbo].[ThirdPartyCalculation] TO [MssExec]
GRANT DELETE ON  [dbo].[ThirdPartyCalculation] TO [MssExec]
GRANT UPDATE ON  [dbo].[ThirdPartyCalculation] TO [MssExec]
GO
Uses