Tables [dbo].[CustomerInvoiceProfile]
Properties
PropertyValue
Row Count (~)0
Created4:57:07 PM Thursday, September 7, 2006
Last Modified11:13:38 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_CustomerInvoiceProfile: ICIPriKeyICIPriKeyint4
No
1 - 1
CustomerNumberint4
No
Foreign Keys FK_CustomerInvoiceProfile_InvoiceProfile: [dbo].[InvoiceProfile].IPPriKeyIPPriKeyint4
No
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_CustomerInvoiceProfile: ICIPriKeyPK_CustomerInvoiceProfileICIPriKey
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_CustomerInvoiceProfile_InvoiceProfileIPPriKey->[dbo].[InvoiceProfile].[IPPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[CustomerInvoiceProfile]
(
[ICIPriKey] [int] NOT NULL IDENTITY(1, 1),
[CustomerNumber] [int] NOT NULL,
[IPPriKey] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerInvoiceProfile] ADD CONSTRAINT [PK_CustomerInvoiceProfile] PRIMARY KEY CLUSTERED  ([ICIPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerInvoiceProfile] ADD CONSTRAINT [FK_CustomerInvoiceProfile_InvoiceProfile] FOREIGN KEY ([IPPriKey]) REFERENCES [dbo].[InvoiceProfile] ([IPPriKey])
GO
GRANT SELECT ON  [dbo].[CustomerInvoiceProfile] TO [MssExec]
GRANT INSERT ON  [dbo].[CustomerInvoiceProfile] TO [MssExec]
GRANT DELETE ON  [dbo].[CustomerInvoiceProfile] TO [MssExec]
GRANT UPDATE ON  [dbo].[CustomerInvoiceProfile] TO [MssExec]
GO
Uses