CREATE TABLE [dbo].[BranchLocation]
(
[BranchLocationID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BranchLocation] ADD CONSTRAINT [PK_BranchLocation] PRIMARY KEY CLUSTERED ([BranchLocationID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[BranchLocation] ADD CONSTRAINT [IX_BranchLocation_Description] UNIQUE NONCLUSTERED ([Description]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[BranchLocation] TO [MssExec]
GRANT INSERT ON [dbo].[BranchLocation] TO [MssExec]
GRANT DELETE ON [dbo].[BranchLocation] TO [MssExec]
GRANT UPDATE ON [dbo].[BranchLocation] TO [MssExec]
GO
EXEC sp_addextendedproperty N'MS_Description', N'The primary key.', 'SCHEMA', N'dbo', 'TABLE', N'BranchLocation', 'COLUMN', N'BranchLocationID'
GO
EXEC sp_addextendedproperty N'MS_Description', N'The user friendly description of this branch location.', 'SCHEMA', N'dbo', 'TABLE', N'BranchLocation', 'COLUMN', N'Description'
GO