CREATE TABLE [dbo].[md_link_tables]
(
[ltbl_link_table_name] [dbo].[ais_name] NOT NULL,
[ltbl_rowver] [timestamp] NOT NULL,
[ltbl_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[ltbl_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[ltbl_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[ltbl_sys] [bit] NOT NULL CONSTRAINT [DF__md_link_tables__ltbl_sys] DEFAULT ((0))
) ON [PRIMARY]
ALTER TABLE [dbo].[md_link_tables] ADD
CONSTRAINT [CK__md_link_tables_ltbl_link_table_name__string_pk] CHECK ((len(ltrim(rtrim([ltbl_link_table_name])))>(0) AND charindex('*',[ltbl_link_table_name])=(0) AND charindex('%',[ltbl_link_table_name])=(0)))
GO
ALTER TABLE [dbo].[md_link_tables] ADD CONSTRAINT [PK_md_link_tables] PRIMARY KEY CLUSTERED  ([ltbl_link_table_name]) ON [PRIMARY]
GO
