CREATE TABLE [dbo].[ATSavedSearch] (
    [Query_ID]      INT            NOT NULL,
    [ATName]        NVARCHAR (128) NULL,
    [UserName]      NVARCHAR (255) NULL,
    [QueryType]     SMALLINT       NULL,
    [QueryLevel]    SMALLINT       NULL,
    [GridString]    IMAGE          NULL,
    [ProcessID]     INT            NULL,
    [WorkItemType]  INT            NULL,
    [ShortcutKey]   INT            NULL,
    [ReferenceType] SMALLINT       NULL,
    CONSTRAINT [PK_ATSavedSearch] PRIMARY KEY NONCLUSTERED ([Query_ID] ASC)
);


GO
CREATE NONCLUSTERED INDEX [ATSavedSearch_IX_ProcessID]
    ON [dbo].[ATSavedSearch]([ProcessID] ASC);

