Tables [dbo].[AdvanceTransmissionDetail]
Properties
PropertyValue
Row Count (~)0
Created9:06:08 AM Thursday, May 23, 2024
Last Modified9:06:11 AM Thursday, May 23, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_AdvanceTransmissionDetail: AdvanceTransmissionDetailIDAdvanceTransmissionDetailIDint4
No
1 - 1
Foreign Keys FK_AdvanceTransmissionDetail_AdvanceTransmission: [dbo].[AdvanceTransmission].AdvanceTransmissionFIDIndexes IX_AdvanceTransmissionDetail_AdvanceTransmissionFID: AdvanceTransmissionFIDAdvanceTransmissionFIDint4
No
Foreign Keys FK_AdvanceTransmissionDetail_Advance: [dbo].[Advance].AdvanceFIDIndexes IX_AdvanceTransmissionDetail_AdvanceFID: AdvanceFID\AdvanceBankingServiceProviderTypeFIDIndexes IX_AdvanceTransmissionDetail_AdvanceFID_AdvanceBankingServiceProviderTypeFID_WasTransmitted: AdvanceFID\AdvanceBankingServiceProviderTypeFID\WasTransmittedAdvanceFIDint4
No
Indexes IX_AdvanceTransmissionDetail_AdvanceFID_AdvanceBankingServiceProviderTypeFID_WasTransmitted: AdvanceFID\AdvanceBankingServiceProviderTypeFID\WasTransmittedWasTransmittedbit1
No
((0))
Foreign Keys FK_AdvanceTransmissionDetail_AdvanceBankingServiceProviderType: [dbo].[AdvanceBankingServiceProviderType].AdvanceBankingServiceProviderTypeFIDIndexes IX_AdvanceTransmissionDetail_AdvanceFID: AdvanceFID\AdvanceBankingServiceProviderTypeFIDIndexes IX_AdvanceTransmissionDetail_AdvanceFID_AdvanceBankingServiceProviderTypeFID_WasTransmitted: AdvanceFID\AdvanceBankingServiceProviderTypeFID\WasTransmittedAdvanceBankingServiceProviderTypeFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_AdvanceTransmissionDetail: AdvanceTransmissionDetailIDPK_AdvanceTransmissionDetailAdvanceTransmissionDetailID
Yes
IX_AdvanceTransmissionDetail_AdvanceFIDAdvanceFID, AdvanceBankingServiceProviderTypeFID
Yes
IX_AdvanceTransmissionDetail_AdvanceFID_AdvanceBankingServiceProviderTypeFID_WasTransmittedAdvanceFID, AdvanceBankingServiceProviderTypeFID, WasTransmitted
IX_AdvanceTransmissionDetail_AdvanceTransmissionFIDAdvanceTransmissionFID
Foreign Keys Foreign Keys
NameColumns
FK_AdvanceTransmissionDetail_AdvanceBankingServiceProviderTypeAdvanceBankingServiceProviderTypeFID->[dbo].[AdvanceBankingServiceProviderType].[AdvanceBankingServiceProviderTypeID]
FK_AdvanceTransmissionDetail_AdvanceAdvanceFID->[dbo].[Advance].[PriKey]
FK_AdvanceTransmissionDetail_AdvanceTransmissionAdvanceTransmissionFID->[dbo].[AdvanceTransmission].[AdvanceTransmissionID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AdvanceTransmissionDetail]
(
[AdvanceTransmissionDetailID] [int] NOT NULL IDENTITY(1, 1),
[AdvanceTransmissionFID] [int] NOT NULL,
[AdvanceFID] [int] NOT NULL,
[WasTransmitted] [bit] NOT NULL CONSTRAINT [DF_AdvanceTransmissionDetail_WasTransmitted] DEFAULT ((0)),
[AdvanceBankingServiceProviderTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdvanceTransmissionDetail] ADD CONSTRAINT [PK_AdvanceTransmissionDetail] PRIMARY KEY CLUSTERED  ([AdvanceTransmissionDetailID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdvanceTransmissionDetail] ADD CONSTRAINT [IX_AdvanceTransmissionDetail_AdvanceFID] UNIQUE NONCLUSTERED  ([AdvanceFID], [AdvanceBankingServiceProviderTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AdvanceTransmissionDetail_AdvanceFID_AdvanceBankingServiceProviderTypeFID_WasTransmitted] ON [dbo].[AdvanceTransmissionDetail] ([AdvanceFID], [AdvanceBankingServiceProviderTypeFID], [WasTransmitted]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_AdvanceTransmissionDetail_AdvanceTransmissionFID] ON [dbo].[AdvanceTransmissionDetail] ([AdvanceTransmissionFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AdvanceTransmissionDetail] ADD CONSTRAINT [FK_AdvanceTransmissionDetail_AdvanceBankingServiceProviderType] FOREIGN KEY ([AdvanceBankingServiceProviderTypeFID]) REFERENCES [dbo].[AdvanceBankingServiceProviderType] ([AdvanceBankingServiceProviderTypeID])
GO
ALTER TABLE [dbo].[AdvanceTransmissionDetail] ADD CONSTRAINT [FK_AdvanceTransmissionDetail_Advance] FOREIGN KEY ([AdvanceFID]) REFERENCES [dbo].[Advance] ([PriKey])
GO
ALTER TABLE [dbo].[AdvanceTransmissionDetail] ADD CONSTRAINT [FK_AdvanceTransmissionDetail_AdvanceTransmission] FOREIGN KEY ([AdvanceTransmissionFID]) REFERENCES [dbo].[AdvanceTransmission] ([AdvanceTransmissionID])
GO
GRANT SELECT ON  [dbo].[AdvanceTransmissionDetail] TO [MssExec]
GRANT INSERT ON  [dbo].[AdvanceTransmissionDetail] TO [MssExec]
GRANT DELETE ON  [dbo].[AdvanceTransmissionDetail] TO [MssExec]
GRANT UPDATE ON  [dbo].[AdvanceTransmissionDetail] TO [MssExec]
GO
Uses