CREATE TABLE [dbo].[nm_actions]
(
[actn_action_code] [dbo].[ais_code_short] NOT NULL,
[actn_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[actn_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[actn_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[actn_sys] [bit] NOT NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[nm_actions] ADD 
CONSTRAINT [PK_nm_actions] PRIMARY KEY CLUSTERED  ([actn_action_code]) ON [PRIMARY]
ALTER TABLE [dbo].[nm_actions] ADD
CONSTRAINT [CK__nm_actions_actn_action_code__string_pk] CHECK ((len(ltrim(rtrim([actn_action_code])))>(0) AND charindex('*',[actn_action_code])=(0) AND charindex('%',[actn_action_code])=(0)))
GO
