Tables [dbo].[XmlCodeOfServiceMap]
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_XmlCodeOfServiceMap: XmlCodeOfServiceMapIDXmlCodeOfServiceMapIDint4
No
1 - 1
Foreign Keys FK_XmlCodeOfServiceMap_MilitaryCodeOfService: [dbo].[MilitaryCodeOfService].MilitaryCodeOfServiceFIDIndexes IX_XmlCodeOfServiceMap_XMLInterface_MilitaryCodeOfService: XmlInterfaceFID\MilitaryCodeOfServiceFIDMilitaryCodeOfServiceFIDint4
No
Foreign Keys FK_XmlCodeOfServiceMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlCodeOfServiceMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeIndexes IX_XmlCodeOfServiceMap_XMLInterface_MilitaryCodeOfService: XmlInterfaceFID\MilitaryCodeOfServiceFIDXmlInterfaceFIDint4
No
Indexes IX_XmlCodeOfServiceMap_XMLInterface_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(32)32
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlCodeOfServiceMap: XmlCodeOfServiceMapIDPK_XmlCodeOfServiceMapXmlCodeOfServiceMapID
Yes
IX_XmlCodeOfServiceMap_XMLInterface_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
IX_XmlCodeOfServiceMap_XMLInterface_MilitaryCodeOfServiceXmlInterfaceFID, MilitaryCodeOfServiceFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlCodeOfServiceMap_MilitaryCodeOfServiceCascadeMilitaryCodeOfServiceFID->[dbo].[MilitaryCodeOfService].[MilitaryCodeOfServiceID]
FK_XmlCodeOfServiceMap_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlCodeOfServiceMap]
(
[XmlCodeOfServiceMapID] [int] NOT NULL IDENTITY(1, 1),
[MilitaryCodeOfServiceFID] [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].[XmlCodeOfServiceMap] ADD CONSTRAINT [PK_XmlCodeOfServiceMap] PRIMARY KEY NONCLUSTERED  ([XmlCodeOfServiceMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlCodeOfServiceMap] ADD CONSTRAINT [IX_XmlCodeOfServiceMap_XMLInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlCodeOfServiceMap] ADD CONSTRAINT [IX_XmlCodeOfServiceMap_XMLInterface_MilitaryCodeOfService] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [MilitaryCodeOfServiceFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlCodeOfServiceMap] ADD CONSTRAINT [FK_XmlCodeOfServiceMap_MilitaryCodeOfService] FOREIGN KEY ([MilitaryCodeOfServiceFID]) REFERENCES [dbo].[MilitaryCodeOfService] ([MilitaryCodeOfServiceID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlCodeOfServiceMap] ADD CONSTRAINT [FK_XmlCodeOfServiceMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlCodeOfServiceMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlCodeOfServiceMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlCodeOfServiceMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlCodeOfServiceMap] TO [MssExec]
GO
Uses