Tables [dbo].[QuoteItemExternal]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created8:57:08 AM Friday, November 22, 2024
Last Modified8:57:08 AM Friday, November 22, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_QuoteItemExternal: QuoteItemExternalIDQuoteItemExternalIDint4
No
1 - 1
Foreign Keys FK_QuoteItemExternal_QuoteHeader: [dbo].[QuoteHeader].QuoteHeaderFIDIndexes IX_QuoteItemExternal_QuoteHeader_XmlInterface_UniqueId: QuoteGroupFID\QuoteDetailFID\QuoteHeaderFID\XmlInterfaceFID\UniqueIdQuoteHeaderFIDint4
No
Foreign Keys FK_QuoteItemExternal_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_QuoteItemExternal_QuoteHeader_XmlInterface_UniqueId: QuoteGroupFID\QuoteDetailFID\QuoteHeaderFID\XmlInterfaceFID\UniqueIdXmlInterfaceFIDint4
No
Indexes IX_QuoteItemExternal_QuoteGroup: QuoteGroupFIDIndexes IX_QuoteItemExternal_QuoteHeader_XmlInterface_UniqueId: QuoteGroupFID\QuoteDetailFID\QuoteHeaderFID\XmlInterfaceFID\UniqueIdQuoteGroupFIDint4
No
Indexes IX_QuoteItemExternal_QuoteDetail: QuoteDetailFIDIndexes IX_QuoteItemExternal_QuoteHeader_XmlInterface_UniqueId: QuoteGroupFID\QuoteDetailFID\QuoteHeaderFID\XmlInterfaceFID\UniqueIdQuoteDetailFIDint4
Yes
Indexes IX_QuoteItemExternal_QuoteHeader_XmlInterface_UniqueId: QuoteGroupFID\QuoteDetailFID\QuoteHeaderFID\XmlInterfaceFID\UniqueIdUniqueIdvarchar(32)32
No
LastSentRowVersionvarbinary(8)8
Yes
LastSentItemCodeFIDint4
Yes
SentDeleteNotificationbit1
No
((0))
Indexes Indexes
NameColumnsUnique
Primary Key PK_QuoteItemExternal: QuoteItemExternalIDPK_QuoteItemExternalQuoteItemExternalID
Yes
IX_QuoteItemExternal_QuoteDetailQuoteDetailFID
IX_QuoteItemExternal_QuoteGroupQuoteGroupFID
IX_QuoteItemExternal_QuoteHeader_XmlInterface_UniqueIdQuoteGroupFID, QuoteDetailFID, QuoteHeaderFID, XmlInterfaceFID, UniqueId
Foreign Keys Foreign Keys
NameColumns
FK_QuoteItemExternal_QuoteHeaderQuoteHeaderFID->[dbo].[QuoteHeader].[QuoteHeaderID]
FK_QuoteItemExternal_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[QuoteItemExternal]
(
[QuoteItemExternalID] [int] NOT NULL IDENTITY(1, 1),
[QuoteHeaderFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[QuoteGroupFID] [int] NOT NULL,
[QuoteDetailFID] [int] NULL,
[UniqueId] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[LastSentRowVersion] [varbinary] (8) NULL,
[LastSentItemCodeFID] [int] NULL,
[SentDeleteNotification] [bit] NOT NULL CONSTRAINT [DF_QuoteItemExternal_SentDeleteNotification] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteItemExternal] ADD CONSTRAINT [PK_QuoteItemExternal] PRIMARY KEY NONCLUSTERED  ([QuoteItemExternalID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_QuoteItemExternal_QuoteDetail] ON [dbo].[QuoteItemExternal] ([QuoteDetailFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_QuoteItemExternal_QuoteGroup] ON [dbo].[QuoteItemExternal] ([QuoteGroupFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_QuoteItemExternal_QuoteHeader_XmlInterface_UniqueId] ON [dbo].[QuoteItemExternal] ([QuoteHeaderFID], [XmlInterfaceFID], [UniqueId]) INCLUDE ([QuoteDetailFID], [QuoteGroupFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteItemExternal] ADD CONSTRAINT [FK_QuoteItemExternal_QuoteHeader] FOREIGN KEY ([QuoteHeaderFID]) REFERENCES [dbo].[QuoteHeader] ([QuoteHeaderID])
GO
ALTER TABLE [dbo].[QuoteItemExternal] ADD CONSTRAINT [FK_QuoteItemExternal_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[QuoteItemExternal] TO [MssExec]
GRANT INSERT ON  [dbo].[QuoteItemExternal] TO [MssExec]
GRANT DELETE ON  [dbo].[QuoteItemExternal] TO [MssExec]
GRANT UPDATE ON  [dbo].[QuoteItemExternal] TO [MssExec]
GO
Uses