CREATE TABLE [dbo].[act_fam_csp]
(
[fcsp_fam_code] [dbo].[ais_code_short] NOT NULL,
[fcsp_rowver] [timestamp] NOT NULL,
[fcsp_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[fcsp_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[fcsp_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[act_fam_csp] ADD
CONSTRAINT [CK__act_fam_csp_fcsp_fam_code__string_pk] CHECK ((len(ltrim(rtrim([fcsp_fam_code])))>(0) AND charindex('*',[fcsp_fam_code])=(0) AND charindex('%',[fcsp_fam_code])=(0)))
GO
ALTER TABLE [dbo].[act_fam_csp] ADD CONSTRAINT [PK_act_fam_csp] PRIMARY KEY CLUSTERED  ([fcsp_fam_code]) ON [PRIMARY]
GO
