CREATE TABLE [dbo].[MilitaryBase]
(
[MilitaryBaseID] [int] NOT NULL IDENTITY(1, 1),
[BaseCode] [varchar] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[BaseName] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[TMOContact] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[EMail] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MilitaryBase] ADD CONSTRAINT [PK_MilitaryBase] PRIMARY KEY CLUSTERED ([MilitaryBaseID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_MilitaryBase_BaseCode] ON [dbo].[MilitaryBase] ([BaseCode]) INCLUDE ([BaseName]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_MilitaryBase_BaseName_BaseCode] ON [dbo].[MilitaryBase] ([BaseName], [BaseCode]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[MilitaryBase] TO [MssExec]
GRANT INSERT ON [dbo].[MilitaryBase] TO [MssExec]
GRANT DELETE ON [dbo].[MilitaryBase] TO [MssExec]
GRANT UPDATE ON [dbo].[MilitaryBase] TO [MssExec]
GO