Tables [dbo].[CountryCodeStandard]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)258
Created4:57:07 PM Thursday, September 7, 2006
Last Modified1:46:35 PM Wednesday, April 10, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_CountryCodeStandard: CountryCodeStandardIDIndexes IX_CountryCodeStandard_Alpha2Code: Alpha2Code\CountryCodeStandardIDIndexes IX_CountryCodeStandard_VanlineCountryCode: VanlineCountryCode\CountryCodeStandardIDCountryCodeStandardIDint4
No
1 - 1
Indexes IX_CountryCodeStandard_CountryName: CountryNameCountryNamevarchar(256)256
No
Indexes IX_CountryCodeStandard_PhoneCountryCode: PhoneCountryCodePhoneCountryCodeint4
Yes
Indexes IX_CountryCodeStandard_VanlineCountryCode: VanlineCountryCode\CountryCodeStandardIDVanlineCountryCodevarchar(3)3
Yes
Indexes IX_CountryCodeStandard_Alpha2Code: Alpha2Code\CountryCodeStandardIDAlpha2Codevarchar(2)2
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_CountryCodeStandard: CountryCodeStandardIDPK_CountryCodeStandardCountryCodeStandardID
Yes
80
IX_CountryCodeStandard_Alpha2CodeAlpha2Code, CountryCodeStandardID
Yes
IX_CountryCodeStandard_CountryNameCountryName
Yes
IX_CountryCodeStandard_VanlineCountryCodeVanlineCountryCode, CountryCodeStandardID
Yes
IX_CountryCodeStandard_PhoneCountryCodePhoneCountryCode
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[CountryCodeStandard]
(
[CountryCodeStandardID] [int] NOT NULL IDENTITY(1, 1),
[CountryName] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PhoneCountryCode] [int] NULL,
[VanlineCountryCode] [varchar] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Alpha2Code] [varchar] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CountryCodeStandard] ADD CONSTRAINT [PK_CountryCodeStandard] PRIMARY KEY CLUSTERED  ([CountryCodeStandardID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CountryCodeStandard] ADD CONSTRAINT [IX_CountryCodeStandard_Alpha2Code] UNIQUE NONCLUSTERED  ([Alpha2Code], [CountryCodeStandardID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CountryCodeStandard] ADD CONSTRAINT [IX_CountryCodeStandard_VanlineCountryCode] UNIQUE NONCLUSTERED  ([VanlineCountryCode], [CountryCodeStandardID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_CountryCodeStandard_CountryName] ON [dbo].[CountryCodeStandard] ([CountryName]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_CountryCodeStandard_PhoneCountryCode] ON [dbo].[CountryCodeStandard] ([PhoneCountryCode]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[CountryCodeStandard] TO [MssExec]
GRANT INSERT ON  [dbo].[CountryCodeStandard] TO [MssExec]
GRANT DELETE ON  [dbo].[CountryCodeStandard] TO [MssExec]
GRANT UPDATE ON  [dbo].[CountryCodeStandard] TO [MssExec]
GO
Uses
Used By