Tables [dbo].[AddlCharges]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created4:57:07 PM Thursday, September 7, 2006
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_AddlCharges: AddlChargesIDAddlChargesIDint4
No
1 - 1
ChargeAmountmoney8
Yes
Foreign Keys FK_AddlCharges_ChargeTypes: [dbo].[ChargeTypes].ChargeTypeIDChargeTypeIDint4
Yes
Foreign Keys FK_AddlCharges_ORDERS: [dbo].[Orders].OrdPriKeyOrdPriKeyint4
Yes
Foreign Keys FK_AddlCharges_Jobs: [dbo].[Jobs].JobsIDJobsIDint4
Yes
Foreign Keys FK_AddlCharges_BillChargesTo: [dbo].[BillChargesTo].BillToIDBillToIDint4
Yes
PONovarchar(20)20
Yes
AuthorizedByvarchar(50)50
Yes
Foreign Keys FK_AddlCharges_AuthVia: [dbo].[AuthVia].AuthViaIDAuthViaIDint4
Yes
ChargeToOrderchar(1)1
Yes
BillTransvarchar(1)1
Yes
Invoicedint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_AddlCharges: AddlChargesIDPK_AddlChargesAddlChargesID
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_AddlCharges_AuthViaAuthViaID->[dbo].[AuthVia].[AuthViaID]
FK_AddlCharges_BillChargesToBillToID->[dbo].[BillChargesTo].[BillChargesToID]
FK_AddlCharges_ChargeTypesChargeTypeID->[dbo].[ChargeTypes].[ChargeTypeID]
FK_AddlCharges_JobsJobsID->[dbo].[Jobs].[JobsID]
FK_AddlCharges_ORDERSOrdPriKey->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AddlCharges]
(
[AddlChargesID] [int] NOT NULL IDENTITY(1, 1),
[ChargeAmount] [money] NULL,
[ChargeTypeID] [int] NULL,
[OrdPriKey] [int] NULL,
[JobsID] [int] NULL,
[BillToID] [int] NULL,
[PONo] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AuthorizedBy] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[AuthViaID] [int] NULL,
[ChargeToOrder] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[BillTrans] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Invoiced] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AddlCharges] ADD CONSTRAINT [PK_AddlCharges] PRIMARY KEY NONCLUSTERED  ([AddlChargesID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AddlCharges] ADD CONSTRAINT [FK_AddlCharges_AuthVia] FOREIGN KEY ([AuthViaID]) REFERENCES [dbo].[AuthVia] ([AuthViaID])
GO
ALTER TABLE [dbo].[AddlCharges] ADD CONSTRAINT [FK_AddlCharges_BillChargesTo] FOREIGN KEY ([BillToID]) REFERENCES [dbo].[BillChargesTo] ([BillChargesToID])
GO
ALTER TABLE [dbo].[AddlCharges] ADD CONSTRAINT [FK_AddlCharges_ChargeTypes] FOREIGN KEY ([ChargeTypeID]) REFERENCES [dbo].[ChargeTypes] ([ChargeTypeID])
GO
ALTER TABLE [dbo].[AddlCharges] ADD CONSTRAINT [FK_AddlCharges_Jobs] FOREIGN KEY ([JobsID]) REFERENCES [dbo].[Jobs] ([JobsID])
GO
ALTER TABLE [dbo].[AddlCharges] ADD CONSTRAINT [FK_AddlCharges_ORDERS] FOREIGN KEY ([OrdPriKey]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[AddlCharges] TO [MssExec]
GRANT INSERT ON  [dbo].[AddlCharges] TO [MssExec]
GRANT DELETE ON  [dbo].[AddlCharges] TO [MssExec]
GRANT UPDATE ON  [dbo].[AddlCharges] TO [MssExec]
GO
Uses
Used By