Tables [dbo].[SalesTaxItemMap]
Properties
PropertyValue
HeapYes
Row Count (~)0
Created8:21:13 AM Thursday, June 27, 2013
Last Modified11:13:41 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_SalesTaxItemMap: SalesTaxItemMapIDSalesTaxItemMapIDint4
No
1 - 1
Foreign Keys FK_SalesTaxItemMap_SalesTaxCode: [dbo].[SalesTaxCode].SalesTaxCodeFIDSalesTaxCodeFIDint4
No
Foreign Keys FK_SalesTaxItemMap_ItemCode: [dbo].[ItemCode].ItemCodeFIDIndexes IX_SalesTaxItemMap_ItemCodeFID: ItemCodeFIDItemCodeFIDint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_SalesTaxItemMap: SalesTaxItemMapIDPK_SalesTaxItemMapSalesTaxItemMapID
Yes
IX_SalesTaxItemMap_ItemCodeFIDItemCodeFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_SalesTaxItemMap_ItemCodeItemCodeFID->[dbo].[ItemCode].[ICPriKey]
FK_SalesTaxItemMap_SalesTaxCodeSalesTaxCodeFID->[dbo].[SalesTaxCode].[SalesTaxCodeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SalesTaxItemMap]
(
[SalesTaxItemMapID] [int] NOT NULL IDENTITY(1, 1),
[SalesTaxCodeFID] [int] NOT NULL,
[ItemCodeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SalesTaxItemMap] ADD CONSTRAINT [PK_SalesTaxItemMap] PRIMARY KEY NONCLUSTERED  ([SalesTaxItemMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SalesTaxItemMap] ADD CONSTRAINT [IX_SalesTaxItemMap_ItemCodeFID] UNIQUE NONCLUSTERED  ([ItemCodeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SalesTaxItemMap] ADD CONSTRAINT [FK_SalesTaxItemMap_ItemCode] FOREIGN KEY ([ItemCodeFID]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
ALTER TABLE [dbo].[SalesTaxItemMap] ADD CONSTRAINT [FK_SalesTaxItemMap_SalesTaxCode] FOREIGN KEY ([SalesTaxCodeFID]) REFERENCES [dbo].[SalesTaxCode] ([SalesTaxCodeID])
GO
GRANT SELECT ON  [dbo].[SalesTaxItemMap] TO [MssExec]
GRANT INSERT ON  [dbo].[SalesTaxItemMap] TO [MssExec]
GRANT DELETE ON  [dbo].[SalesTaxItemMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[SalesTaxItemMap] TO [MssExec]
GO
Uses