Tables [dbo].[ServiceType]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)10
Created4:57:08 PM Thursday, September 7, 2006
Last Modified11:13:41 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDescription
Cluster Primary Key PK_ServiceType: ServiceTypeIDIndexes IX_ServiceTypeDescription: ServiceTypeIDServiceTypeIDint4
No
1 - 1The primary key.
Indexes IX_Unique_ServiceTypeDescription_VanLineCode: ServiceTypeDescription\VanLineCodeServiceTypeDescriptionvarchar(64)64
No
The description of the service type.
Indexes IX_Unique_ServiceTypeDescription_VanLineCode: ServiceTypeDescription\VanLineCodeVanLineCodevarchar(16)16
No
The van line code for the service type.
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_ServiceType: ServiceTypeIDPK_ServiceTypeServiceTypeID
Yes
80
IX_Unique_ServiceTypeDescription_VanLineCodeServiceTypeDescription, VanLineCode
Yes
80
IX_ServiceTypeDescriptionServiceTypeID80
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ServiceType]
(
[ServiceTypeID] [int] NOT NULL IDENTITY(1, 1),
[ServiceTypeDescription] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[VanLineCode] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServiceType] ADD CONSTRAINT [PK_ServiceType] PRIMARY KEY CLUSTERED  ([ServiceTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServiceType] ADD CONSTRAINT [IX_Unique_ServiceTypeDescription_VanLineCode] UNIQUE NONCLUSTERED  ([ServiceTypeDescription], [VanLineCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ServiceTypeDescription] ON [dbo].[ServiceType] ([ServiceTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[ServiceType] TO [MssExec]
GRANT INSERT ON  [dbo].[ServiceType] TO [MssExec]
GRANT DELETE ON  [dbo].[ServiceType] TO [MssExec]
GRANT UPDATE ON  [dbo].[ServiceType] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'The description of the service type.', 'SCHEMA', N'dbo', 'TABLE', N'ServiceType', 'COLUMN', N'ServiceTypeDescription'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The primary key.', 'SCHEMA', N'dbo', 'TABLE', N'ServiceType', 'COLUMN', N'ServiceTypeID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The van line code for the service type.', 'SCHEMA', N'dbo', 'TABLE', N'ServiceType', 'COLUMN', N'VanLineCode'
GO
Uses
Used By