If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Help on Resolving a Pervasive Error.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-26-03, 09:15
AJV AJV is offline
Registered User
 
Join Date: Feb 2003
Posts: 9
Help on Resolving a Pervasive Error.

When I try to execute a very large SQL statement I get the following error:

"SQL statement is too long. Maximum length is <nnn> characters."

Is there any configuration option in PCC or in ODBC Administrator to increase the maximum buffer of the SQL query.
Reply With Quote
  #2 (permalink)  
Old 06-27-03, 14:39
jchapman jchapman is offline
Registered User
 
Join Date: Jun 2003
Posts: 1
Re: Help on Resolving a Pervasive Error.

At this time, It's not possible to stretch the max SQL statement size beyond 64K since these buffers are sized using a UINT16.

I know of no current plans to extend this limit. But if you contact our support folks and explain your requirements, they will forward your suggestions to the people who are planning future releases.
Reply With Quote
  #3 (permalink)  
Old 06-30-03, 02:49
AJV AJV is offline
Registered User
 
Join Date: Feb 2003
Posts: 9
Thnx jchapman... ;-)
Reply With Quote
  #4 (permalink)  
Old 03-09-04, 10:30
Shawn Nelson Shawn Nelson is offline
Registered User
 
Join Date: Mar 2004
Location: KC,USA
Posts: 1
Large SQL Statement

I have a 37K OPENQUERY sql statement I'm running through SQL 2000 that fails when the number of OR conditionals is too high. The syntax is correct becuase it runs when a lessor number of OR conditions are chosen. Any suggestions? While the statement is below the documented 64K limit it still fails.

Thanks in advance.
Shawn
Reply With Quote
  #5 (permalink)  
Old 03-09-04, 15:24
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Make sure you're running the latest HotFIx for 2000i. I remember hearing about a problem with 37 OR conditionals in a query.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On