[dbo].[CountryCodeStandard]
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