Tables [dbo].[ShipmentType]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)10
Created4:57:08 PM Thursday, September 7, 2006
Last Modified9:19:34 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDescription
Cluster Primary Key PK_ShipmentType: ShipmentTypeIDIndexes IX_ShipmentTypeDescription: ShipmentTypeIDShipmentTypeIDint4
No
1 - 1The primary key.
Indexes IX_Unique_ShipmentTypeDescription: ShipmentTypeDescriptionShipmentTypeDescriptionvarchar(64)64
No
The description of the shipment type.
Indexes IX_Unique_VanLineCode: VanLineCodeVanLineCodevarchar(16)16
No
The van line code for the shipment type.
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_ShipmentType: ShipmentTypeIDPK_ShipmentTypeShipmentTypeID
Yes
80
IX_Unique_ShipmentTypeDescriptionShipmentTypeDescription
Yes
80
IX_Unique_VanLineCodeVanLineCode
Yes
80
IX_ShipmentTypeDescriptionShipmentTypeID80
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ShipmentType]
(
[ShipmentTypeID] [int] NOT NULL IDENTITY(1, 1),
[ShipmentTypeDescription] [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].[ShipmentType] ADD CONSTRAINT [PK_ShipmentType] PRIMARY KEY CLUSTERED  ([ShipmentTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentType] ADD CONSTRAINT [IX_Unique_ShipmentTypeDescription] UNIQUE NONCLUSTERED  ([ShipmentTypeDescription]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentType] ADD CONSTRAINT [IX_Unique_VanLineCode] UNIQUE NONCLUSTERED  ([VanLineCode]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ShipmentTypeDescription] ON [dbo].[ShipmentType] ([ShipmentTypeID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[ShipmentType] TO [MssExec]
GRANT INSERT ON  [dbo].[ShipmentType] TO [MssExec]
GRANT DELETE ON  [dbo].[ShipmentType] TO [MssExec]
GRANT UPDATE ON  [dbo].[ShipmentType] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'The description of the shipment type.', 'SCHEMA', N'dbo', 'TABLE', N'ShipmentType', 'COLUMN', N'ShipmentTypeDescription'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The primary key.', 'SCHEMA', N'dbo', 'TABLE', N'ShipmentType', 'COLUMN', N'ShipmentTypeID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The van line code for the shipment type.', 'SCHEMA', N'dbo', 'TABLE', N'ShipmentType', 'COLUMN', N'VanLineCode'
GO
Uses
Used By