IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[flatVarDef]') AND type = 'U')
CREATE TABLE [dbo].[flatVarDef]
(
    [varid] int NOT NULL IDENTITY(1, 1),
    [varname] varchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [datatype] varchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [fldsize] int NULL,
    [fldprec] int NULL,
    [issys] int NULL,
)