Tables [dbo].[GPCustomer]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)2817
Created7:07:57 PM Thursday, December 17, 2009
Last Modified10:46:51 AM Thursday, April 21, 2011
Columns
NameData TypeMax Length (Bytes)Allow Nulls
CustomerClassvarchar(15)15
Yes
Cluster Key IX_GPCustomer_CustomerNumber: CustomerNumberCustomerNumbervarchar(15)15
No
Indexes IX_GPWarehouse_GPCustomer: CustomerNameCustomerNamevarchar(65)65
No
CustomerBalancemoney8
Yes
CustomerAgeint4
Yes
LastPaymentDatedatetime8
Yes
LastPaymentAmountmoney8
Yes
CreditLimitmoney8
Yes
CreditLimitTypevarchar(15)15
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Key IX_GPCustomer_CustomerNumber: CustomerNumberIX_GPCustomer_CustomerNumberCustomerNumber
Yes
80
IX_GPWarehouse_GPCustomerCustomerName80
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[GPCustomer]
(
[CustomerClass] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CustomerName] [varchar] (65) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CustomerBalance] [money] NULL,
[CustomerAge] [int] NULL,
[LastPaymentDate] [datetime] NULL,
[LastPaymentAmount] [money] NULL,
[CreditLimit] [money] NULL,
[CreditLimitType] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_GPWarehouse_GPCustomer] ON [dbo].[GPCustomer] ([CustomerName]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE UNIQUE CLUSTERED INDEX [IX_GPCustomer_CustomerNumber] ON [dbo].[GPCustomer] ([CustomerNumber]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[GPCustomer] TO [MssExec]
GRANT INSERT ON  [dbo].[GPCustomer] TO [MssExec]
GRANT DELETE ON  [dbo].[GPCustomer] TO [MssExec]
GRANT UPDATE ON  [dbo].[GPCustomer] TO [MssExec]
GO
Uses