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


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

