Tables [dbo].[XmlPackTypeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:10:58 AM Friday, November 8, 2024
Last Modified9:10:58 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_XmlPackTypeMap: XmlPackTypeMapIDXmlPackTypeMapIDint4
No
1 - 1
Foreign Keys FK_XmlPackTypeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlPackTypeMap_XmlInterfaceFID_PackTypeFID: XmlInterfaceFID\PackTypeFIDXmlInterfaceFIDint4
No
Foreign Keys FK_XmlPackTypeMap_PackType: [dbo].[PackType].PackTypeFIDIndexes IX_XmlPackTypeMap_XmlInterfaceFID_PackTypeFID: XmlInterfaceFID\PackTypeFIDPackTypeFIDint4
No
ExternalCodevarchar(25)25
No
IsNoPackbit1
No
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_XmlPackTypeMap: XmlPackTypeMapIDPK_XmlPackTypeMapXmlPackTypeMapID
Yes
IX_XmlPackTypeMap_XmlInterfaceFID_PackTypeFIDXmlInterfaceFID, PackTypeFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlPackTypeMap_PackTypePackTypeFID->[dbo].[PackType].[PackTypeID]
FK_XmlPackTypeMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlPackTypeMap]
(
[XmlPackTypeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[PackTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (25) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[IsNoPack] [bit] NOT NULL CONSTRAINT [DF_XmlPackTypeMap_IsNoPack] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlPackTypeMap] ADD CONSTRAINT [PK_XmlPackTypeMap] PRIMARY KEY CLUSTERED  ([XmlPackTypeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlPackTypeMap] ADD CONSTRAINT [IX_XmlPackTypeMap_XmlInterfaceFID_PackTypeFID] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [PackTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlPackTypeMap] ADD CONSTRAINT [FK_XmlPackTypeMap_PackType] FOREIGN KEY ([PackTypeFID]) REFERENCES [dbo].[PackType] ([PackTypeID])
GO
ALTER TABLE [dbo].[XmlPackTypeMap] ADD CONSTRAINT [FK_XmlPackTypeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlPackTypeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlPackTypeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlPackTypeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlPackTypeMap] TO [MssExec]
GO
Uses