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


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

