Tables [dbo].[CustomerInvoiceReport]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)1
Created11:16:06 AM Wednesday, January 9, 2013
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_CustomerInvoiceReport: CustomerInvoiceReportIDCustomerInvoiceReportIDint4
No
1 - 1
Indexes IX_CustomerInvoiceReport_CustomerNumber: CustomerNumberCustomerNumbervarchar(15)15
No
Foreign Keys FK_CustomerInvoiceReport_ReportFID: [dbo].[Reports].ReportFIDReportFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_CustomerInvoiceReport: CustomerInvoiceReportIDPK_CustomerInvoiceReportCustomerInvoiceReportID
Yes
IX_CustomerInvoiceReport_CustomerNumberCustomerNumber
Yes
Foreign Keys Foreign Keys
NameColumns
FK_CustomerInvoiceReport_ReportFIDReportFID->[dbo].[Reports].[Prikey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[CustomerInvoiceReport]
(
[CustomerInvoiceReportID] [int] NOT NULL IDENTITY(1, 1),
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ReportFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerInvoiceReport] ADD CONSTRAINT [PK_CustomerInvoiceReport] PRIMARY KEY CLUSTERED  ([CustomerInvoiceReportID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_CustomerInvoiceReport_CustomerNumber] ON [dbo].[CustomerInvoiceReport] ([CustomerNumber]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CustomerInvoiceReport] ADD CONSTRAINT [FK_CustomerInvoiceReport_ReportFID] FOREIGN KEY ([ReportFID]) REFERENCES [dbo].[Reports] ([Prikey])
GO
GRANT SELECT ON  [dbo].[CustomerInvoiceReport] TO [MssExec]
GRANT INSERT ON  [dbo].[CustomerInvoiceReport] TO [MssExec]
GRANT DELETE ON  [dbo].[CustomerInvoiceReport] TO [MssExec]
GRANT UPDATE ON  [dbo].[CustomerInvoiceReport] TO [MssExec]
GO
Uses
Used By