Tables [dbo].[SCShippingDetails]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)98
Created4:57:08 PM Thursday, September 7, 2006
Last Modified7:31:24 PM Wednesday, February 28, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_SCShippingDetails: PriKeyPriKeyint4
No
1 - 1
Foreign Keys FK_SCShippingDetails_ORDERS: [dbo].[Orders].OrdPriKeyIndexes IX_SCShippingDetails_OrdPriKey: OrdPriKeyOrdPriKeyint4
No
Descriptionvarchar(80)80
Yes
Lengthint4
Yes
Widthint4
Yes
Heightint4
Yes
Weightint4
Yes
ModelNumbervarchar(20)20
Yes
SerialNumbervarchar(32)32
Yes
IsAutoFilledDescriptionbit1
No
((0))
SequenceNumberint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_SCShippingDetails: PriKeyPK_SCShippingDetailsPriKey
Yes
80
IX_SCShippingDetails_OrdPriKeyOrdPriKey
Foreign Keys Foreign Keys
NameColumns
FK_SCShippingDetails_ORDERSOrdPriKey->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SCShippingDetails]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[OrdPriKey] [int] NOT NULL,
[Description] [varchar] (80) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Length] [int] NULL,
[Width] [int] NULL,
[Height] [int] NULL,
[Weight] [int] NULL,
[ModelNumber] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SerialNumber] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsAutoFilledDescription] [bit] NOT NULL CONSTRAINT [DF_SCShippingDetails_IsAutoFilledDescription] DEFAULT ((0)),
[SequenceNumber] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCShippingDetails] ADD CONSTRAINT [PK_SCShippingDetails] PRIMARY KEY CLUSTERED  ([PriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SCShippingDetails_OrdPriKey] ON [dbo].[SCShippingDetails] ([OrdPriKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SCShippingDetails] ADD CONSTRAINT [FK_SCShippingDetails_ORDERS] FOREIGN KEY ([OrdPriKey]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[SCShippingDetails] TO [MssExec]
GRANT INSERT ON  [dbo].[SCShippingDetails] TO [MssExec]
GRANT DELETE ON  [dbo].[SCShippingDetails] TO [MssExec]
GRANT UPDATE ON  [dbo].[SCShippingDetails] TO [MssExec]
GO
Uses
Used By