Tables [dbo].[XmlOrderPhoneTypeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)6
Created3:33:55 PM Thursday, December 6, 2018
Last Modified3:33:57 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlOrderPhoneTypeMap: XmlOrderPhoneTypeMapIDXmlOrderPhoneTypeMapIDint4
No
1 - 1
Cluster Key IX_XmlOrderPhoneTypeMap_ImlInterfaceFID_ExternalCode: XmlInterfaceFID\ExternalCodeForeign Keys FK_XmlOrderPhoneTypeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlOrderPhoneTypeMap_ImlInterfaceFID_OrderPhoneTypeFID: XmlInterfaceFID\OrderPhoneTypeFIDXmlInterfaceFIDint4
No
Foreign Keys FK_XmlOrderPhoneTypeMap_OrderPhoneType: [dbo].[OrderPhoneType].OrderPhoneTypeFIDIndexes IX_XmlOrderPhoneTypeMap_ImlInterfaceFID_OrderPhoneTypeFID: XmlInterfaceFID\OrderPhoneTypeFIDOrderPhoneTypeFIDint4
No
Cluster Key IX_XmlOrderPhoneTypeMap_ImlInterfaceFID_ExternalCode: XmlInterfaceFID\ExternalCodeExternalCodevarchar(50)50
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlOrderPhoneTypeMap: XmlOrderPhoneTypeMapIDPK_XmlOrderPhoneTypeMapXmlOrderPhoneTypeMapID
Yes
Cluster Key IX_XmlOrderPhoneTypeMap_ImlInterfaceFID_ExternalCode: XmlInterfaceFID\ExternalCodeIX_XmlOrderPhoneTypeMap_ImlInterfaceFID_ExternalCodeXmlInterfaceFID, ExternalCode
Yes
IX_XmlOrderPhoneTypeMap_ImlInterfaceFID_OrderPhoneTypeFIDXmlInterfaceFID, OrderPhoneTypeFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlOrderPhoneTypeMap_OrderPhoneTypeOrderPhoneTypeFID->[dbo].[OrderPhoneType].[OrderPhoneTypeID]
FK_XmlOrderPhoneTypeMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlOrderPhoneTypeMap]
(
[XmlOrderPhoneTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[OrderPhoneTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderPhoneTypeMap] ADD CONSTRAINT [PK_XmlOrderPhoneTypeMap] PRIMARY KEY NONCLUSTERED  ([XmlOrderPhoneTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderPhoneTypeMap] ADD CONSTRAINT [IX_XmlOrderPhoneTypeMap_ImlInterfaceFID_ExternalCode] UNIQUE CLUSTERED  ([XmlInterfaceFID], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderPhoneTypeMap] ADD CONSTRAINT [IX_XmlOrderPhoneTypeMap_ImlInterfaceFID_OrderPhoneTypeFID] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [OrderPhoneTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlOrderPhoneTypeMap] ADD CONSTRAINT [FK_XmlOrderPhoneTypeMap_OrderPhoneType] FOREIGN KEY ([OrderPhoneTypeFID]) REFERENCES [dbo].[OrderPhoneType] ([OrderPhoneTypeID])
GO
ALTER TABLE [dbo].[XmlOrderPhoneTypeMap] ADD CONSTRAINT [FK_XmlOrderPhoneTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlOrderPhoneTypeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlOrderPhoneTypeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlOrderPhoneTypeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlOrderPhoneTypeMap] TO [MssExec]
GO
Uses
Used By