Tables [dbo].[VanLine]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)9
Created3:35:23 PM Tuesday, May 8, 2012
Last Modified7:37:20 PM Tuesday, September 24, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_VanLine: VLPriKeyVLPriKeyint4
No
1 - 1
Indexes IX_VanLine_VanLineCode: VanLineCodeVanLineCodevarchar(1)1
No
VanLineNamevarchar(30)30
No
CustomerNumbervarchar(15)15
Yes
VendorNumbervarchar(15)15
Yes
ImageURLvarchar(2048)2048
Yes
DOTvarchar(50)50
Yes
PhoneNumber[dbo].[PhoneCombined]30
Yes
Extension[dbo].[PhoneExtension]10
Yes
Foreign Keys FK_VanLIne_AuthorityType: [dbo].[AuthorityTypes].AuthorityTypeFIDIndexes IX_VanLine_AuthorityType: AuthorityTypeFIDAuthorityTypeFIDint4
No
ClaimsCustomerNumbervarchar(15)15
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_VanLine: VLPriKeyPK_VanLineVLPriKey
Yes
IX_VanLine_VanLineCodeVanLineCode
Yes
IX_VanLine_AuthorityTypeAuthorityTypeFID
Foreign Keys Foreign Keys
NameColumns
FK_VanLIne_AuthorityTypeAuthorityTypeFID->[dbo].[AuthorityTypes].[AuthPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[VanLine]
(
[VLPriKey] [int] NOT NULL IDENTITY(1, 1),
[VanLineCode] [varchar] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[VanLineName] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[VendorNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ImageURL] [varchar] (2048) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[DOT] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PhoneNumber] [dbo].[PhoneCombined] NULL,
[Extension] [dbo].[PhoneExtension] NULL,
[AuthorityTypeFID] [int] NOT NULL,
[ClaimsCustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanLine] ADD CONSTRAINT [PK_VanLine] PRIMARY KEY CLUSTERED  ([VLPriKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanLine] ADD CONSTRAINT [IX_VanLine_VanLineCode] UNIQUE NONCLUSTERED  ([VanLineCode]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_VanLine_AuthorityType] ON [dbo].[VanLine] ([AuthorityTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[VanLine] ADD CONSTRAINT [FK_VanLIne_AuthorityType] FOREIGN KEY ([AuthorityTypeFID]) REFERENCES [dbo].[AuthorityTypes] ([AuthPriKey])
GO
GRANT SELECT ON  [dbo].[VanLine] TO [MssExec]
GRANT INSERT ON  [dbo].[VanLine] TO [MssExec]
GRANT DELETE ON  [dbo].[VanLine] TO [MssExec]
GRANT UPDATE ON  [dbo].[VanLine] TO [MssExec]
GO
Uses
Used By