CREATE TABLE [dbo].[nm_umr]
(
[umr_umr_code] [dbo].[ais_code_long] NOT NULL,
[umr_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[umr_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[umr_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[nm_umr] ADD
CONSTRAINT [CK__nm_umr_umr_umr_code__string_pk] CHECK ((len(ltrim(rtrim([umr_umr_code])))>(0) AND charindex('*',[umr_umr_code])=(0) AND charindex('%',[umr_umr_code])=(0)))
GO
ALTER TABLE [dbo].[nm_umr] ADD CONSTRAINT [PK_nm_umr] PRIMARY KEY CLUSTERED  ([umr_umr_code]) ON [PRIMARY]
GO
