Home All Groups Group Topic Archive Search About

internal query processor error



Author
5 Apr 2005 1:35 PM
krishna
hi
using sql server 2000 sp3...
trying to execute  sql statement which has complex subqueries from
perl using DBI DBD ODBC modules  and this error comes up
if same sql statement executed from query analyzer, sql statement gets
executed successfully

error:
DBD::ODBC::st execute failed: [Microsoft][ODBC SQL Server Driver][SQL
Server]Internal Query Processor Error:
The query processor ran out of stack space during query optimization.
(SQL-42000)(DBD: st_execute/SQLExecute err=-1)

any help or pointers would be really helpful
thanks in advance

Author
5 Apr 2005 2:40 PM
Uri Dimant
Krishna
Check it out
FIX: A SELECT Statement with a Large IN Clause May Fail with a Stack
Overflow and the Client Disconnects
http://support.microsoft.com/d­efault.aspx?scid=kb;en-us;2784­21






Show quoteHide quote
"krishna" <kris***@discussions.microsoft.com> wrote in message
news:D5C9D467-0FD5-4382-B048-2D2DF2B98429@microsoft.com...
> hi
> using sql server 2000 sp3...
> trying to execute  sql statement which has complex subqueries from
> perl using DBI DBD ODBC modules  and this error comes up
> if same sql statement executed from query analyzer, sql statement gets
> executed successfully
>
> error:
> DBD::ODBC::st execute failed: [Microsoft][ODBC SQL Server Driver][SQL
> Server]Internal Query Processor Error:
> The query processor ran out of stack space during query optimization.
> (SQL-42000)(DBD: st_execute/SQLExecute err=-1)
>
> any help or pointers would be really helpful
> thanks in advance
Are all your drivers up to date? click for free checkup

Author
5 Apr 2005 1:59 PM
krishna
checked the fix in the support site
the sql statement  gets executed sucessfully through
query analyzer
or from asp page
it gives error when executed from perl DBI DBD ODBC module
why is this difference


Show quoteHide quote
"Uri Dimant" wrote:

> Krishna
> Check it out
> FIX: A SELECT Statement with a Large IN Clause May Fail with a Stack
> Overflow and the Client Disconnects
> http://support.microsoft.com/d­efault.aspx?scid=kb;en-us;2784­21
>
>
>
>
>
>
> "krishna" <kris***@discussions.microsoft.com> wrote in message
> news:D5C9D467-0FD5-4382-B048-2D2DF2B98429@microsoft.com...
> > hi
> > using sql server 2000 sp3...
> > trying to execute  sql statement which has complex subqueries from
> > perl using DBI DBD ODBC modules  and this error comes up
> > if same sql statement executed from query analyzer, sql statement gets
> > executed successfully
> >
> > error:
> > DBD::ODBC::st execute failed: [Microsoft][ODBC SQL Server Driver][SQL
> > Server]Internal Query Processor Error:
> > The query processor ran out of stack space during query optimization.
> > (SQL-42000)(DBD: st_execute/SQLExecute err=-1)
> >
> > any help or pointers would be really helpful
> > thanks in advance
>
>
>
Author
6 Apr 2005 1:19 AM
Adrian Zajkeskovic
I guess that rules out Microsoft ODBC (used by Query Analyzer) and probably
points to something in your Perl module as the cause. Try using a newer
module.

Please post your query here.

Adrian



Show quoteHide quote
"krishna" <kris***@discussions.microsoft.com> wrote in message
news:1F2DA04B-AB16-4489-8006-60503E51DEBE@microsoft.com...
> checked the fix in the support site
> the sql statement  gets executed sucessfully through
> query analyzer
> or from asp page
> it gives error when executed from perl DBI DBD ODBC module
> why is this difference
>
>
> "Uri Dimant" wrote:
>
>> Krishna
>> Check it out
>> FIX: A SELECT Statement with a Large IN Clause May Fail with a Stack
>> Overflow and the Client Disconnects
>> http://support.microsoft.com/d­efault.aspx?scid=kb;en-us;2784­21
>>
>>
>>
>>
>>
>>
>> "krishna" <kris***@discussions.microsoft.com> wrote in message
>> news:D5C9D467-0FD5-4382-B048-2D2DF2B98429@microsoft.com...
>> > hi
>> > using sql server 2000 sp3...
>> > trying to execute  sql statement which has complex subqueries from
>> > perl using DBI DBD ODBC modules  and this error comes up
>> > if same sql statement executed from query analyzer, sql statement gets
>> > executed successfully
>> >
>> > error:
>> > DBD::ODBC::st execute failed: [Microsoft][ODBC SQL Server Driver][SQL
>> > Server]Internal Query Processor Error:
>> > The query processor ran out of stack space during query optimization.
>> > (SQL-42000)(DBD: st_execute/SQLExecute err=-1)
>> >
>> > any help or pointers would be really helpful
>> > thanks in advance
>>
>>
>>

Bookmark and Share