Tables [dbo].[QuoteLocalServiceMap]
Properties
PropertyValue
HeapYes
Row Count (~)0
Created9:33:39 AM Friday, December 7, 2018
Last Modified9:33:40 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_QuoteLocalServiceMap: QuoteLocalServiceMapIDQuoteLocalServiceMapIDint4
No
1 - 1
Foreign Keys FK_QuoteLocalServiceMap_QuoteHeader: [dbo].[QuoteHeader].QuoteHeaderFIDIndexes IX_QuoteLocalServiceMap_OnlyOneHeaderService: QuoteHeaderFID\LocServFIDQuoteHeaderFIDint4
No
Foreign Keys FK_QuoteLocalServiceMap_LocServ: [dbo].[LocServ].LocServFIDIndexes IX_QuoteLocalServiceMap_OnlyOneHeaderService: QuoteHeaderFID\LocServFIDLocServFIDint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_QuoteLocalServiceMap: QuoteLocalServiceMapIDPK_QuoteLocalServiceMapQuoteLocalServiceMapID
Yes
IX_QuoteLocalServiceMap_OnlyOneHeaderServiceQuoteHeaderFID, LocServFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_QuoteLocalServiceMap_LocServLocServFID->[dbo].[LocServ].[PriKey]
FK_QuoteLocalServiceMap_QuoteHeaderQuoteHeaderFID->[dbo].[QuoteHeader].[QuoteHeaderID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[QuoteLocalServiceMap]
(
[QuoteLocalServiceMapID] [int] NOT NULL IDENTITY(1, 1),
[QuoteHeaderFID] [int] NOT NULL,
[LocServFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteLocalServiceMap] ADD CONSTRAINT [PK_QuoteLocalServiceMap] PRIMARY KEY NONCLUSTERED  ([QuoteLocalServiceMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteLocalServiceMap] ADD CONSTRAINT [IX_QuoteLocalServiceMap_OnlyOneHeaderService] UNIQUE NONCLUSTERED  ([QuoteHeaderFID], [LocServFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteLocalServiceMap] ADD CONSTRAINT [FK_QuoteLocalServiceMap_LocServ] FOREIGN KEY ([LocServFID]) REFERENCES [dbo].[LocServ] ([PriKey])
GO
ALTER TABLE [dbo].[QuoteLocalServiceMap] ADD CONSTRAINT [FK_QuoteLocalServiceMap_QuoteHeader] FOREIGN KEY ([QuoteHeaderFID]) REFERENCES [dbo].[QuoteHeader] ([QuoteHeaderID])
GO
GRANT SELECT ON  [dbo].[QuoteLocalServiceMap] TO [MssExec]
GRANT INSERT ON  [dbo].[QuoteLocalServiceMap] TO [MssExec]
GRANT DELETE ON  [dbo].[QuoteLocalServiceMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[QuoteLocalServiceMap] TO [MssExec]
GO
Uses