Tables [dbo].[XmlInterfaceAccountMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created7:42:37 PM Wednesday, February 28, 2024
Last Modified7:42:40 PM Wednesday, February 28, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlInterfaceAccountMap: XmlInterfaceAccountMapIdXmlInterfaceAccountMapIdint4
No
1 - 1
Foreign Keys FK_XmlInterfaceAccountMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFidIndexes IX_XmlInterfaceAccountMap_XmlInterface_Account: XmlInterfaceFid\AccountFidIndexes IX_XmlInterfaceAccountMap_XmlInterface_ExternalCode: XmlInterfaceFid\ExternalCodeXmlInterfaceFidint4
No
Foreign Keys FK_XmlInterfaceAccountMap_Account: [dbo].[Accounts].AccountFidIndexes IX_XmlInterfaceAccountMap_XmlInterface_Account: XmlInterfaceFid\AccountFidAccountFidint4
No
Indexes IX_XmlInterfaceAccountMap_XmlInterface_ExternalCode: XmlInterfaceFid\ExternalCodeExternalCodevarchar(16)16
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInterfaceAccountMap: XmlInterfaceAccountMapIdPK_XmlInterfaceAccountMapXmlInterfaceAccountMapId
Yes
IX_XmlInterfaceAccountMap_XmlInterface_AccountXmlInterfaceFid, AccountFid
Yes
IX_XmlInterfaceAccountMap_XmlInterface_ExternalCodeXmlInterfaceFid, ExternalCode
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlInterfaceAccountMap_AccountCascadeAccountFid->[dbo].[Accounts].[AccountPriKey]
FK_XmlInterfaceAccountMap_XmlInterfaceCascadeXmlInterfaceFid->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInterfaceAccountMap]
(
[XmlInterfaceAccountMapId] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFid] [int] NOT NULL,
[AccountFid] [int] NOT NULL,
[ExternalCode] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceAccountMap] ADD CONSTRAINT [PK_XmlInterfaceAccountMap] PRIMARY KEY NONCLUSTERED  ([XmlInterfaceAccountMapId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceAccountMap] ADD CONSTRAINT [IX_XmlInterfaceAccountMap_XmlInterface_Account] UNIQUE NONCLUSTERED  ([XmlInterfaceFid], [AccountFid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceAccountMap] ADD CONSTRAINT [IX_XmlInterfaceAccountMap_XmlInterface_ExternalCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFid], [ExternalCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceAccountMap] ADD CONSTRAINT [FK_XmlInterfaceAccountMap_Account] FOREIGN KEY ([AccountFid]) REFERENCES [dbo].[Accounts] ([AccountPriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlInterfaceAccountMap] ADD CONSTRAINT [FK_XmlInterfaceAccountMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFid]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlInterfaceAccountMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInterfaceAccountMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInterfaceAccountMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInterfaceAccountMap] TO [MssExec]
GO
Uses
Used By