IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_privatesql]') AND type = 'U')
CREATE TABLE [dbo].[mps_privatesql]
(
    [ps_id] int NOT NULL IDENTITY(1, 1),
    [ps_cmpid] int NULL DEFAULT((0)),
    [ps_name] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ps_sql] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [ps_extcond] nvarchar(4000) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    CONSTRAINT [PK_MPS_PRIVATESQL] PRIMARY KEY ([ps_id] ASC)
)