Tables [dbo].[MilitaryAllocationHeader]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created10:30:21 AM Monday, March 30, 2015
Last Modified10:30:29 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_MilitaryAllocationHeader: MilitaryAllocationHeaderIDMilitaryAllocationHeaderIDint4
No
1 - 1
Descriptionvarchar(30)30
No
Foreign Keys FK_MilitaryAllocationHeader_DateBasis: [dbo].[DateBasis].DateBasisFIDDateBasisFIDint4
No
DefaultAgreementbit1
No
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_MilitaryAllocationHeader: MilitaryAllocationHeaderIDPK_MilitaryAllocationHeaderMilitaryAllocationHeaderID
Yes
Check Constraints Check Constraints
NameConstraint
CK_MilitaryAllocationHeader_DefaultAgreement((0)=[dbo].[MilitaryAllocationHeaderDefaultAgreement]([MilitaryAllocationHeaderID],[DefaultAgreement]))
Foreign Keys Foreign Keys
NameColumns
FK_MilitaryAllocationHeader_DateBasisDateBasisFID->[dbo].[DateBasis].[DateBasisID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MilitaryAllocationHeader]
(
[MilitaryAllocationHeaderID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DateBasisFID] [int] NOT NULL,
[DefaultAgreement] [bit] NOT NULL CONSTRAINT [DF_MilitaryAllocationHeader_DefaultAgreement] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryAllocationHeader] ADD CONSTRAINT [CK_MilitaryAllocationHeader_DefaultAgreement] CHECK (((0)=[dbo].[MilitaryAllocationHeaderDefaultAgreement]([MilitaryAllocationHeaderID],[DefaultAgreement])))
GO
ALTER TABLE [dbo].[MilitaryAllocationHeader] ADD CONSTRAINT [PK_MilitaryAllocationHeader] PRIMARY KEY CLUSTERED  ([MilitaryAllocationHeaderID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryAllocationHeader] ADD CONSTRAINT [FK_MilitaryAllocationHeader_DateBasis] FOREIGN KEY ([DateBasisFID]) REFERENCES [dbo].[DateBasis] ([DateBasisID])
GO
GRANT SELECT ON  [dbo].[MilitaryAllocationHeader] TO [MssExec]
GRANT INSERT ON  [dbo].[MilitaryAllocationHeader] TO [MssExec]
GRANT DELETE ON  [dbo].[MilitaryAllocationHeader] TO [MssExec]
GRANT UPDATE ON  [dbo].[MilitaryAllocationHeader] TO [MssExec]
GO
Uses
Used By