Tables [dbo].[InvoiceProfileDetail]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
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
Cluster Primary Key PK_InvoiceProfileDetail: IPDPriKeyIPDPriKeyint4
No
1 - 1
Foreign Keys FK_InvoiceProfileDetail_InvoiceProfile: [dbo].[InvoiceProfile].IPPriKeyIPPriKeyint4
No
Invoicechar(1)1
Yes
InvoiceOrderint4
Yes
Foreign Keys FK_InvoiceProfileDetail_ItemCode: [dbo].[ItemCode].ICPriKeyICPriKeyint4
Yes
Foreign Keys FK_InvoiceProfileDetail_InvoiceGroup: [dbo].[InvoiceGroup].IGPriKeyIGPriKeyint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_InvoiceProfileDetail: IPDPriKeyPK_InvoiceProfileDetailIPDPriKey
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_InvoiceProfileDetail_ItemCodeICPriKey->[dbo].[ItemCode].[ICPriKey]
FK_InvoiceProfileDetail_InvoiceGroupIGPriKey->[dbo].[InvoiceGroup].[IGPriKey]
FK_InvoiceProfileDetail_InvoiceProfileIPPriKey->[dbo].[InvoiceProfile].[IPPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[InvoiceProfileDetail]
(
[IPDPriKey] [int] NOT NULL IDENTITY(1, 1),
[IPPriKey] [int] NOT NULL,
[Invoice] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[InvoiceOrder] [int] NULL,
[ICPriKey] [int] NULL,
[IGPriKey] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceProfileDetail] ADD CONSTRAINT [PK_InvoiceProfileDetail] PRIMARY KEY CLUSTERED  ([IPDPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceProfileDetail] ADD CONSTRAINT [FK_InvoiceProfileDetail_ItemCode] FOREIGN KEY ([ICPriKey]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
ALTER TABLE [dbo].[InvoiceProfileDetail] ADD CONSTRAINT [FK_InvoiceProfileDetail_InvoiceGroup] FOREIGN KEY ([IGPriKey]) REFERENCES [dbo].[InvoiceGroup] ([IGPriKey])
GO
ALTER TABLE [dbo].[InvoiceProfileDetail] ADD CONSTRAINT [FK_InvoiceProfileDetail_InvoiceProfile] FOREIGN KEY ([IPPriKey]) REFERENCES [dbo].[InvoiceProfile] ([IPPriKey])
GO
GRANT SELECT ON  [dbo].[InvoiceProfileDetail] TO [MssExec]
GRANT INSERT ON  [dbo].[InvoiceProfileDetail] TO [MssExec]
GRANT DELETE ON  [dbo].[InvoiceProfileDetail] TO [MssExec]
GRANT UPDATE ON  [dbo].[InvoiceProfileDetail] TO [MssExec]
GO
Uses