Tables [dbo].[XmlBranchOfServiceMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created11:18:38 AM Wednesday, January 9, 2013
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlBranchOfServiceMap: XmlBranchOfServiceMapIDXmlBranchOfServiceMapIDint4
No
1 - 1
Foreign Keys FK_XmlBranchOfServiceMap_MilitaryBranchOfService: [dbo].[MilitaryBranchOfService].MilitaryBranchOfServiceFIDIndexes IX_XmlBranchOfServiceMap_XMLInterface_MilitaryBranchOfService: XmlInterfaceFID\MilitaryBranchOfServiceFIDMilitaryBranchOfServiceFIDint4
No
Foreign Keys FK_XmlBranchOfServiceMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlBranchOfServiceMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeIndexes IX_XmlBranchOfServiceMap_XMLInterface_MilitaryBranchOfService: XmlInterfaceFID\MilitaryBranchOfServiceFIDXmlInterfaceFIDint4
No
Indexes IX_XmlBranchOfServiceMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlBranchOfServiceMap: XmlBranchOfServiceMapIDPK_XmlBranchOfServiceMapXmlBranchOfServiceMapID
Yes
IX_XmlBranchOfServiceMap_XMLInterface_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
IX_XmlBranchOfServiceMap_XMLInterface_MilitaryBranchOfServiceXmlInterfaceFID, MilitaryBranchOfServiceFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlBranchOfServiceMap_MilitaryBranchOfServiceCascadeMilitaryBranchOfServiceFID->[dbo].[MilitaryBranchOfService].[MilitaryBranchOfServiceID]
FK_XmlBranchOfServiceMap_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlBranchOfServiceMap]
(
[XmlBranchOfServiceMapID] [int] NOT NULL IDENTITY(1, 1),
[MilitaryBranchOfServiceFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlBranchOfServiceMap] ADD CONSTRAINT [PK_XmlBranchOfServiceMap] PRIMARY KEY NONCLUSTERED  ([XmlBranchOfServiceMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlBranchOfServiceMap] ADD CONSTRAINT [IX_XmlBranchOfServiceMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlBranchOfServiceMap] ADD CONSTRAINT [IX_XmlBranchOfServiceMap_XMLInterface_MilitaryBranchOfService] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [MilitaryBranchOfServiceFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlBranchOfServiceMap] ADD CONSTRAINT [FK_XmlBranchOfServiceMap_MilitaryBranchOfService] FOREIGN KEY ([MilitaryBranchOfServiceFID]) REFERENCES [dbo].[MilitaryBranchOfService] ([MilitaryBranchOfServiceID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlBranchOfServiceMap] ADD CONSTRAINT [FK_XmlBranchOfServiceMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlBranchOfServiceMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlBranchOfServiceMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlBranchOfServiceMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlBranchOfServiceMap] TO [MssExec]
GO
Uses