Unix Technical Forum

Query Processor Error

This is a discussion on Query Processor Error within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> I get the following message when I'm inserting a row into a table. The statement is very simple, but ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:34 PM
cj
 
Posts: n/a
Default Query Processor Error

I get the following message when I'm inserting a row into a table. The
statement is very simple, but there is a large amount of data going into one
column.

Internal Query Processor Error: The query processor ran out of stack space
during query optimization

All the KB articles I've found so far refer to queries that have a large
number of elements in an IN clause, or a CASE statement with a large number
of WHEN clauses - niether of which fit this scenario.

Has anyone else had this problem and found a way around it. I can't
replicate the problem on any of our development or test servers - it only
happens on the production server. All servers are the same spec - W2K
Server and SQL Server 2000 - all service packed up.

Any help appreciated.

Cheers,

Cameron


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:34 PM
Steve Kass
 
Posts: n/a
Default Re: Query Processor Error

Cameron,

Can you provide more information? What is the structure of the table,
and what is the insert statement, or at the least, what form does it have -
insert .. values, insert into .. select? Are there any triggers on the
table?
What indexes are on the table? Are any of the tables involved actually
views?

It's hard to suggest a way around a problem with this little information
about what you are trying to do.

-- Steve Kass
-- Drew University
-- Ref: 20CAE9D5-49D4-43CF-A330-EE3EB766EF1A

cj wrote:

>I get the following message when I'm inserting a row into a table. The
>statement is very simple, but there is a large amount of data going into one
>column.
>
>Internal Query Processor Error: The query processor ran out of stack space
>during query optimization
>
>All the KB articles I've found so far refer to queries that have a large
>number of elements in an IN clause, or a CASE statement with a large number
>of WHEN clauses - niether of which fit this scenario.
>
>Has anyone else had this problem and found a way around it. I can't
>replicate the problem on any of our development or test servers - it only
>happens on the production server. All servers are the same spec - W2K
>Server and SQL Server 2000 - all service packed up.
>
>Any help appreciated.
>
>Cheers,
>
>Cameron
>
>
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 08:35 PM
Greg Low \(MVP\)
 
Posts: n/a
Default Re: Query Processor Error

Have you got an insert trigger on the table? What are your settings for
nested and recursive triggers?

HTH,


--
Greg Low (MVP)
MSDE Manager SQL Tools
www.whitebearconsulting.com

"cj" <smuffnstuff@hotmail.com> wrote in message
news:O7Ptg8aoDHA.3612@TK2MSFTNGP11.phx.gbl...
> I get the following message when I'm inserting a row into a table. The
> statement is very simple, but there is a large amount of data going into

one
> column.
>
> Internal Query Processor Error: The query processor ran out of stack space
> during query optimization
>
> All the KB articles I've found so far refer to queries that have a large
> number of elements in an IN clause, or a CASE statement with a large

number
> of WHEN clauses - niether of which fit this scenario.
>
> Has anyone else had this problem and found a way around it. I can't
> replicate the problem on any of our development or test servers - it only
> happens on the production server. All servers are the same spec - W2K
> Server and SQL Server 2000 - all service packed up.
>
> Any help appreciated.
>
> Cheers,
>
> Cameron
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:45 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com