|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Server: Msg 8623 - The query processor could not produce a query pWe get the following error *periodically* on our site... Server: Msg 8623, Level 16, State 1, Line 8 Internal Query Processor Error: The query processor could not produce a query plan. Contact your primary support provider for more information. When it occurs it happens all the time, until the error stops (if you see what I mean). The duration of the error period may be a few minutes, or about 3 hours like this afternon. I've cut a query down and can reproduce the error (when it occurs!) with the following code. NB If the Insert line is omitted, the error does NOT occur.. declare @search varchar(100) set @search = N'"Jaws*"' DECLARE @GUID UniqueIdentifier SET @GUID = NewID() -- Inserting matches from book titles INSERT INTO SearchResults (GUID, titleid, theRank, theType) --!!! SELECT @GUID, [KEY], RANK, 'Title' as type FROM CONTAINSTABLE(WebTitles,title,@search) DELETE FROM SearchResults WHERE GUID = @GUID If anyone has any ideas, I'm all ears. I've googled quite alot but to no avail. *Many* thanks in advance. Andy NB, table definition... CREATE TABLE [SearchResults] ( [PK_SearchResults] [int] IDENTITY (1, 1) NOT NULL , [GUID] [uniqueidentifier] NULL , [TitleID] [char] (10) COLLATE Latin1_General_CI_AS NULL , [theRank] [int] NULL , [theType] [varchar] (8) COLLATE Latin1_General_CI_AS NULL , [cntTitleId] [int] NULL , PRIMARY KEY CLUSTERED ( [PK_SearchResults] ) WITH FILLFACTOR = 90 ON [PRIMARY] ) ON [PRIMARY] GO How many users are accessing the SearchResults table?
Try indexing the GUID column. Also try including the WebTitles table when retrieving from CONTAINSTABLE (this is not required, but I'm interested in results). ML --- http://milambda.blogspot.com/ Andy,
This is most likely a server bug. Please contact product support. Regards, Leo Show quoteHide quote "Andy" <A***@discussions.microsoft.com> wrote in message news:B72638C0-4F6F-496C-97C0-68CC868F2E80@microsoft.com... > Dear all, > We get the following error *periodically* on our site... > > Server: Msg 8623, Level 16, State 1, Line 8 > Internal Query Processor Error: The query processor could not produce a > query plan. Contact your primary support provider for more information. > > When it occurs it happens all the time, until the error stops (if you see > what I mean). The duration of the error period may be a few minutes, or > about > 3 hours like this afternon. > > I've cut a query down and can reproduce the error (when it occurs!) with > the > following code. NB If the Insert line is omitted, the error does NOT > occur.. > > declare @search varchar(100) > set @search = N'"Jaws*"' > DECLARE @GUID UniqueIdentifier > SET @GUID = NewID() > -- Inserting matches from book titles > INSERT INTO SearchResults (GUID, titleid, theRank, theType) --!!! > SELECT @GUID, [KEY], RANK, 'Title' as type FROM > CONTAINSTABLE(WebTitles,title,@search) > DELETE FROM SearchResults WHERE GUID = @GUID > > If anyone has any ideas, I'm all ears. I've googled quite alot but to no > avail. > > *Many* thanks in advance. > Andy > > NB, table definition... > CREATE TABLE [SearchResults] ( > [PK_SearchResults] [int] IDENTITY (1, 1) NOT NULL , > [GUID] [uniqueidentifier] NULL , > [TitleID] [char] (10) COLLATE Latin1_General_CI_AS NULL , > [theRank] [int] NULL , > [theType] [varchar] (8) COLLATE Latin1_General_CI_AS NULL , > [cntTitleId] [int] NULL , > PRIMARY KEY CLUSTERED > ( > [PK_SearchResults] > ) WITH FILLFACTOR = 90 ON [PRIMARY] > ) ON [PRIMARY] > GO >
Other interesting topics
Cannot see system views?
How to calculate a 5 minute running average? error-checking in dynamic SQL? getting the records returned by one query and not another Script for importing Windows active directory domain user accounts? SQL2K: Query to consolidate multiple rows into single row with additional data? Is "inner join" the same as "join"? Data Manipulation ACCESS TO MSSQL Incorrect syntax near the keyword 'AS'. Trouble with Stored Procedure - SQL 2005 |
|||||||||||||||||||||||