Tables [dbo].[XmlPayMethodVanlineMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)3
Created5:34:46 PM Monday, May 4, 2009
Last Modified11:13:44 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_XmlPayMethodVanlineMap: XmlPayMethodVanlineMapIDXmlPayMethodVanlineMapIDint4
No
1 - 1
Foreign Keys FK_XmlPayMethodVanlineMap_PayMethod: [dbo].[PayMethod].PayMethodFIDIndexes IX_XmlPayMethodVanlineMap_XMLInterface_PayMethod: XmlInterfaceFID\PayMethodFIDPayMethodFIDint4
No
Foreign Keys FK_XmlPayMethodVanlineMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlPayMethodVanlineMap_XMLInterface_PayMethod: XmlInterfaceFID\PayMethodFIDIndexes IX_XmlPayMethodVanlineMap_XMLInterface_VanlineCode: XmlInterfaceFID\VanlineCodeXmlInterfaceFIDint4
No
Indexes IX_XmlPayMethodVanlineMap_XMLInterface_VanlineCode: XmlInterfaceFID\VanlineCodeVanlineCodevarchar(64)64
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_XmlPayMethodVanlineMap: XmlPayMethodVanlineMapIDPK_XmlPayMethodVanlineMapXmlPayMethodVanlineMapID
Yes
80
IX_XmlPayMethodVanlineMap_XMLInterface_PayMethodXmlInterfaceFID, PayMethodFID
Yes
80
IX_XmlPayMethodVanlineMap_XMLInterface_VanlineCodeXmlInterfaceFID, VanlineCode
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlPayMethodVanlineMap_PayMethodCascadePayMethodFID->[dbo].[PayMethod].[PayMethodID]
FK_XmlPayMethodVanlineMap_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
Extended Properties
NameLevel 2 TypeLevel 2 NameValue
DescriptionCOLUMNPayMethodFIDForeign key to the PayMethod table.
DescriptionCOLUMNVanlineCodeCode used to map a vanline between an interface and a payment method.
DescriptionCOLUMNXmlInterfaceFIDForeign key to an external interface.
DescriptionCOLUMNXmlPayMethodVanlineMapIDPrimary key of the table.
SQL Script
CREATE TABLE [dbo].[XmlPayMethodVanlineMap]
(
[XmlPayMethodVanlineMapID] [int] NOT NULL IDENTITY(1, 1),
[PayMethodFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[VanlineCode] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlPayMethodVanlineMap] ADD CONSTRAINT [PK_XmlPayMethodVanlineMap] PRIMARY KEY NONCLUSTERED  ([XmlPayMethodVanlineMapID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlPayMethodVanlineMap] ADD CONSTRAINT [IX_XmlPayMethodVanlineMap_XMLInterface_PayMethod] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [PayMethodFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlPayMethodVanlineMap] ADD CONSTRAINT [IX_XmlPayMethodVanlineMap_XMLInterface_VanlineCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [VanlineCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlPayMethodVanlineMap] ADD CONSTRAINT [FK_XmlPayMethodVanlineMap_PayMethod] FOREIGN KEY ([PayMethodFID]) REFERENCES [dbo].[PayMethod] ([PayMethodID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlPayMethodVanlineMap] ADD CONSTRAINT [FK_XmlPayMethodVanlineMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlPayMethodVanlineMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlPayMethodVanlineMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlPayMethodVanlineMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlPayMethodVanlineMap] TO [MssExec]
GO
EXEC sp_addextendedproperty N'Description', N'Foreign key to the PayMethod table.', 'SCHEMA', N'dbo', 'TABLE', N'XmlPayMethodVanlineMap', 'COLUMN', N'PayMethodFID'
GO
EXEC sp_addextendedproperty N'Description', N'Code used to map a vanline between an interface and a payment method.', 'SCHEMA', N'dbo', 'TABLE', N'XmlPayMethodVanlineMap', 'COLUMN', N'VanlineCode'
GO
EXEC sp_addextendedproperty N'Description', N'Foreign key to an external interface.', 'SCHEMA', N'dbo', 'TABLE', N'XmlPayMethodVanlineMap', 'COLUMN', N'XmlInterfaceFID'
GO
EXEC sp_addextendedproperty N'Description', N'Primary key of the table.', 'SCHEMA', N'dbo', 'TABLE', N'XmlPayMethodVanlineMap', 'COLUMN', N'XmlPayMethodVanlineMapID'
GO
Uses