CREATE TABLE [dbo].[nm_smtp_servers]
(
[smtp_smtpserver_code] [dbo].[ais_code_short] NOT NULL,
[smtp_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[smtp_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[smtp_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[smtp_host] [varchar] (64) COLLATE French_CI_AS NOT NULL,
[smtp_username] [varchar] (64) COLLATE French_CI_AS NOT NULL,
[smtp_password] [varchar] (64) COLLATE French_CI_AS NULL,
[smtp_port] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_smtp_servers] ADD CONSTRAINT [CK__nm_smtp_servers_smtp_smtpserver_code__string_pk] CHECK ((len(ltrim(rtrim([smtp_smtpserver_code])))>(0) AND charindex('*',[smtp_smtpserver_code])=(0) AND charindex('%',[smtp_smtpserver_code])=(0)))
GO
ALTER TABLE [dbo].[nm_smtp_servers] ADD CONSTRAINT [PK_nm_smtp_servers] PRIMARY KEY CLUSTERED  ([smtp_smtpserver_code]) ON [PRIMARY]
GO
