Tables [dbo].[XmlInterfaceBranchOption]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:37:43 AM Friday, December 7, 2018
Last Modified9:37:43 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_XmlInterfaceBranchOption: XmlInterfaceBranchOptionIDXmlInterfaceBranchOptionIDint4
No
1 - 1
Foreign Keys FK_XmlInterfaceBranchOption_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInterfaceBranchOption_XmlInterface_Branch_XmlInterfaceBranchOptionType: XmlInterfaceFID\BranchFID\XmlInterfaceBranchOptionTypeFIDXmlInterfaceFIDint4
No
Foreign Keys FK_XmlInterfaceBranchOption_Branch: [dbo].[Branch].BranchFIDIndexes IX_XmlInterfaceBranchOption_XmlInterface_Branch_XmlInterfaceBranchOptionType: XmlInterfaceFID\BranchFID\XmlInterfaceBranchOptionTypeFIDBranchFIDint4
No
Foreign Keys FK_XmlInterfaceBranchOption_XmlInterfaceBranchOptionType: [dbo].[XmlInterfaceBranchOptionType].XmlInterfaceBranchOptionTypeFIDIndexes IX_XmlInterfaceBranchOption_XmlInterface_Branch_XmlInterfaceBranchOptionType: XmlInterfaceFID\BranchFID\XmlInterfaceBranchOptionTypeFIDXmlInterfaceBranchOptionTypeFIDint4
No
Valuevarchar(512)512
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_XmlInterfaceBranchOption: XmlInterfaceBranchOptionIDPK_XmlInterfaceBranchOptionXmlInterfaceBranchOptionID
Yes
IX_XmlInterfaceBranchOption_XmlInterface_Branch_XmlInterfaceBranchOptionTypeXmlInterfaceFID, BranchFID, XmlInterfaceBranchOptionTypeFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlInterfaceBranchOption_BranchBranchFID->[dbo].[Branch].[BranchPriKey]
FK_XmlInterfaceBranchOption_XmlInterfaceBranchOptionTypeXmlInterfaceBranchOptionTypeFID->[dbo].[XmlInterfaceBranchOptionType].[XmlInterfaceBranchOptionTypeID]
FK_XmlInterfaceBranchOption_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInterfaceBranchOption]
(
[XmlInterfaceBranchOptionID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[BranchFID] [int] NOT NULL,
[XmlInterfaceBranchOptionTypeFID] [int] NOT NULL,
[Value] [varchar] (512) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceBranchOption] ADD CONSTRAINT [PK_XmlInterfaceBranchOption] PRIMARY KEY CLUSTERED  ([XmlInterfaceBranchOptionID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceBranchOption] ADD CONSTRAINT [IX_XmlInterfaceBranchOption_XmlInterface_Branch_XmlInterfaceBranchOptionType] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [BranchFID], [XmlInterfaceBranchOptionTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceBranchOption] ADD CONSTRAINT [FK_XmlInterfaceBranchOption_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
ALTER TABLE [dbo].[XmlInterfaceBranchOption] ADD CONSTRAINT [FK_XmlInterfaceBranchOption_XmlInterfaceBranchOptionType] FOREIGN KEY ([XmlInterfaceBranchOptionTypeFID]) REFERENCES [dbo].[XmlInterfaceBranchOptionType] ([XmlInterfaceBranchOptionTypeID])
GO
ALTER TABLE [dbo].[XmlInterfaceBranchOption] ADD CONSTRAINT [FK_XmlInterfaceBranchOption_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlInterfaceBranchOption] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInterfaceBranchOption] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInterfaceBranchOption] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInterfaceBranchOption] TO [MssExec]
GO
Uses