CREATE TABLE [dbo].[ATVariableInstanceTextBlob] (
    [InstanceID]  INT           NOT NULL,
    [VariableID]  INT           NOT NULL,
    [Value]       TEXT          NOT NULL,
    [ReferenceID] INT           NULL,
    [Name]        NVARCHAR (50) NOT NULL,
    [DataType]    INT           NOT NULL,
    CONSTRAINT [PK_ATVariableInstanceTextBlob] PRIMARY KEY CLUSTERED ([InstanceID] ASC)
);


GO
CREATE NONCLUSTERED INDEX [RefID]
    ON [dbo].[ATVariableInstanceTextBlob]([ReferenceID] ASC);

