Tables [dbo].[XmlQuoteLink]
Properties
PropertyValue
Row Count (~)0
Created9:13:25 AM Friday, December 7, 2018
Last Modified9:13:25 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_XmlQuoteLink: XmlQuoteLinkIDXmlQuoteLinkIDint4
No
1 - 1
Foreign Keys FK_XmlQuoteLink_QuoteHeader: [dbo].[QuoteHeader].QuoteHeaderFIDQuoteHeaderFIDint4
No
Foreign Keys FK_XmlQuoteLink_XmlSystem: [dbo].[XmlSystem].XmlSystemFIDIndexes IX_XmlQuoteLink_System_Orders: OrdersFID\XmlSystemFIDXmlSystemFIDint4
No
Foreign Keys FK_XmlQuoteLink_Orders: [dbo].[Orders].OrdersFIDIndexes IX_XmlQuoteLink_System_Orders: OrdersFID\XmlSystemFIDOrdersFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_XmlQuoteLink: XmlQuoteLinkIDPK_XmlQuoteLinkXmlQuoteLinkID
Yes
IX_XmlQuoteLink_System_OrdersOrdersFID, XmlSystemFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlQuoteLink_OrdersCascadeOrdersFID->[dbo].[Orders].[PriKey]
FK_XmlQuoteLink_QuoteHeaderCascadeQuoteHeaderFID->[dbo].[QuoteHeader].[QuoteHeaderID]
FK_XmlQuoteLink_XmlSystemXmlSystemFID->[dbo].[XmlSystem].[XmlSystemID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlQuoteLink]
(
[XmlQuoteLinkID] [int] NOT NULL IDENTITY(1, 1),
[QuoteHeaderFID] [int] NOT NULL,
[XmlSystemFID] [int] NOT NULL,
[OrdersFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlQuoteLink] ADD CONSTRAINT [PK_XmlQuoteLink] PRIMARY KEY CLUSTERED  ([XmlQuoteLinkID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlQuoteLink] ADD CONSTRAINT [IX_XmlQuoteLink_System_Orders] UNIQUE NONCLUSTERED  ([OrdersFID], [XmlSystemFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlQuoteLink] ADD CONSTRAINT [FK_XmlQuoteLink_Orders] FOREIGN KEY ([OrdersFID]) REFERENCES [dbo].[Orders] ([PriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlQuoteLink] ADD CONSTRAINT [FK_XmlQuoteLink_QuoteHeader] FOREIGN KEY ([QuoteHeaderFID]) REFERENCES [dbo].[QuoteHeader] ([QuoteHeaderID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlQuoteLink] ADD CONSTRAINT [FK_XmlQuoteLink_XmlSystem] FOREIGN KEY ([XmlSystemFID]) REFERENCES [dbo].[XmlSystem] ([XmlSystemID])
GO
GRANT SELECT ON  [dbo].[XmlQuoteLink] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlQuoteLink] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlQuoteLink] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlQuoteLink] TO [MssExec]
GO
Uses