IF NOT (EXISTS
(
    SELECT name
    FROM sysobjects
    WHERE name = 'BarcodeLabelDeletedHistory'
)
       )
    CREATE TABLE [dbo].[BarcodeLabelDeletedHistory]
    (
        [Id] UNIQUEIDENTIFIER NOT NULL
            DEFAULT (NEWID()),
        [DeletedBy] SMALLINT,
        [DeletedOn] DATETIME
            DEFAULT (GETDATE()),
        [ComputerName] [VARCHAR](40) NOT NULL,
        [LabelCount] INT NULL,
        [RightLabel] [NVARCHAR](200) NULL,
        [TopLabel] [NVARCHAR](200) NULL,
        [BottomLabel] [NVARCHAR](200) NULL,
        [LeftLabel] [NVARCHAR](200) NULL,
        [CenterLabel] [NVARCHAR](200) NULL,
        [CreatedBy] [SMALLINT] NULL,
        [CreatedOn] [dbo].[SysTarikh] NULL,
        CONSTRAINT [PK_BarcodeLabelDeletedHistory]
            PRIMARY KEY NONCLUSTERED ([Id])
    ) ON [PRIMARY];