SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[QueryLog](
[QueryLogId] [int] IDENTITY(1,1) NOT NULL,
[Connector] [nvarchar](100) NOT NULL,
[Query] [nvarchar](255) NOT NULL,
[QueryDateTime] [datetime] NOT NULL,
[QueryDuration] int NOT NULL,
[ResultType] [nvarchar](15) NOT NULL,
[ResultMessage] [nvarchar] (255) NULL,
[ThreadId] [int] NOT NULL
CONSTRAINT [PK_QueryLog] PRIMARY KEY CLUSTERED
(
[QueryLogId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO